freebsd-ports/lang/moscow_ml/files/patch-dynlibs_mgdbm_Makefile
2005-11-03 13:12:44 +00:00

25 lines
560 B
Text

$FreeBSD$
--- dynlibs/mgdbm/Makefile.orig
+++ dynlibs/mgdbm/Makefile
@@ -5,8 +5,8 @@
# Where to find GDBM header file and compiled library
-GDBMLIBDIR=${HOME}/c/gdbm-1.7.3
-GDBMINCDIR=${HOME}/c/gdbm-1.7.3
+GDBMLIBDIR=${LOCALBASE}/lib
+GDBMINCDIR=${LOCALBASE}/include
#GDBMLIBDIR=/usr/lib
#GDBMINCDIR=/usr/include
@@ -25,7 +25,7 @@
$(CC) $(CFLAGS) -c -o mgdbm.o mgdbm.c
libmgdbm.so: mgdbm.o
- $(DYNLD) -o libmgdbm.so mgdbm.o ${GDBMLIBDIR}/libgdbm.a
+ $(DYNLD) -o libmgdbm.so mgdbm.o -L${GDBMLIBDIR} -lgdbm
test:
mosml -P full testgdbm.sml