Browse Source

Fix OpenGL compile issues on PC-BSD

rdb 16 years ago
parent
commit
453381a0b1
1 changed files with 7 additions and 2 deletions
  1. 7 2
      dtool/Config.FreeBSD.pp

+ 7 - 2
dtool/Config.FreeBSD.pp

@@ -36,7 +36,7 @@
   #define CXX CC
 #endif
 
-// Linux doesn't (yet) have any funny architecture flags.
+// FreeBSD doesn't (yet) have any funny architecture flags.
 #defer ARCH_FLAGS 
 
 // How to compile a C or C++ file into a .o file.  $[target] is the
@@ -138,7 +138,7 @@
 #defer INSTALL_PROG $[if $[ne $[dir $[local]], ./],cd ./$[dir $[local]] &&] install -m $[INSTALL_UMASK_PROG] $[install_dash_p] $[notdir $[local]] $[dest]/
 
 // What additional flags should we pass to interrogate?
-#if $[eq $[shell uname -m], x86_64] // if Linux is 64bit
+#if $[eq $[shell uname -m], x86_64] // if FreeBSD is 64bit
   #define SYSTEM_IGATE_FLAGS -D_LP64 -D__const=const -Dvolatile -Dmutable
 #else
   #define SYSTEM_IGATE_FLAGS -D__i386__ -D__const=const -Dvolatile -Dmutable
@@ -292,3 +292,8 @@
 #define DYNAMIC_LIB_EXT .so
 #define STATIC_LIB_EXT .a
 #define BUNDLE_EXT
+
+#if $[eq $[shell uname -n], pcbsd] // if we're running PC-BSD
+  #define EXTRA_IPATH /usr/PCBSD/local/include/
+  #define EXTRA_LPATH /usr/PCBSD/local/lib/
+#endif