changeset 1126:db03d49dce25

. Fix NetBSD detection. Submitted by: Christos Zoulas
author glewis@sol.eyesbeyond.com
date Sun, 06 Dec 2009 12:45:15 -0800
parents 7f3788949598
children 23aa5f344171
files make/bsd/makefiles/zeroshark.make
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/bsd/makefiles/zeroshark.make	Sun Nov 29 19:01:50 2009 -0800
+++ b/make/bsd/makefiles/zeroshark.make	Sun Dec 06 12:45:15 2009 -0800
@@ -44,16 +44,18 @@
 ifdef ALT_PACKAGE_PATH
   PACKAGE_PATH = $(ALT_PACKAGE_PATH)
 else
-  ifeq ($(OS_VENDOR), Apple)
+  ifeq ($(OS_VENDOR),Apple)
     PACKAGE_PATH = /opt/local
   else
-    ifeq ($(OS_NAME), netbsd)
+    ifeq ($(OS_VENDOR),NetBSD)
       PACKAGE_PATH = /usr/pkg
+      LIBS += -Wl,-R${PACKAGE_PATH}/lib
     else
       PACKAGE_PATH = /usr/local
     endif
   endif
 endif
+
 CFLAGS += -I$(PACKAGE_PATH)/include
 LIBS += -L$(PACKAGE_PATH)/lib -lffi