$NetBSD: patch-ae,v 1.3 2006/08/14 22:36:47 wiz Exp $ --- src/Hsml/Makefile.orig 2004-11-08 22:41:48.000000000 +0000 +++ src/Hsml/Makefile @@ -7,7 +7,7 @@ DEBUG=-g DEFS+= -DINCORE_LUA=${INCORE_LUA} DEFS+= -DPATH_JAVA=\"${JAVA}\" DEFS+= -DPATH_CC=\"${PATH_CC}\" -CFLAGS= -I/usr/pkg/include -I/usr/local/include ${DEBUG} ${DEFS} +CFLAGS+= ${DEBUG} ${DEFS} %.o: %.c @echo "[hsml] $<" @@ -15,7 +15,7 @@ CFLAGS= -I/usr/pkg/include -I/usr/local/ all: opts ${OBJ} langs @echo "[hsml] LINKING..." - @${CC} ${CFLAGS} ${OBJ} -o ${BIN} `cat .opts` + @${CC} ${CFLAGS} ${LDFLAGS} ${OBJ} -o ${BIN} `cat .opts` @echo "-----------------" clean: @@ -24,7 +24,7 @@ clean: opts: echo > .opts - if [ "${INCORE_LUA}" = "1" ]; then echo "-llualib -L /usr/pkg/lib -R /usr/pkg/lib -llua -lm " > .opts ; \ + if [ "${INCORE_LUA}" = "1" ]; then echo "-L /usr/pkg/lib -R /usr/pkg/lib -llua -lm " > .opts ; \ else echo "" > .opts ; fi if [ "`uname`" = "Linux" ]; then echo " -ldl " >> .opts ; fi