diff --git a/configure b/configure index 440b375f..247c4850 100755 --- a/configure +++ b/configure @@ -1763,6 +1763,7 @@ _ACEOF SYSTEM="`uname -s`" CPU="`uname -m`" +LDFLAGS="-I /usr/local/include" # Extract the first word of "gmake", so it can be a program name with args. set dummy gmake; ac_word=$2 diff --git a/configure.in b/configure.in index c7e49685..67d6ac26 100644 --- a/configure.in +++ b/configure.in @@ -40,6 +40,7 @@ AC_DEFINE_UNQUOTED(SHORTRIGHT, "$SHORTRIGHT") AC_SUBST(VERSION) SYSTEM="`uname -s`" CPU="`uname -m`" +LDFLAGS="-I /usr/local/include" dnl dnl Checks for programs. diff --git a/examples/Makefile b/examples/Makefile index a3fc4edb..fbec68c1 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -12,7 +12,7 @@ OTHER = Makefile header.txt footer.txt \ ##################################################################################### .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: diff --git a/lib/Makefile b/lib/Makefile index 42e1d358..338f570f 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -51,7 +51,7 @@ SLIBS = ../lib/libmbse.a ############################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: ${TARGET} diff --git a/mbcico/Makefile b/mbcico/Makefile index 4bac96bc..e16f988d 100644 --- a/mbcico/Makefile +++ b/mbcico/Makefile @@ -38,7 +38,7 @@ TARGET = mbcico mbout ############################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: ${TARGET} diff --git a/mbfido/Makefile b/mbfido/Makefile index 6146d37b..4cc0a0e0 100644 --- a/mbfido/Makefile +++ b/mbfido/Makefile @@ -54,7 +54,7 @@ TARGET = mbfido mbseq mbaff mbindex mbdiff mbfile mbmsg #################################################################################################################### .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: ${TARGET} diff --git a/mbmon/Makefile b/mbmon/Makefile index 5b0c509f..d3588280 100644 --- a/mbmon/Makefile +++ b/mbmon/Makefile @@ -13,7 +13,7 @@ OTHER = Makefile ############################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: mbmon diff --git a/mbnntp/Makefile b/mbnntp/Makefile index e983ed4c..523f3f93 100644 --- a/mbnntp/Makefile +++ b/mbnntp/Makefile @@ -15,7 +15,7 @@ OTHER = Makefile ############################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: mbnntp diff --git a/mbsebbs/Makefile b/mbsebbs/Makefile index a537575f..1bf2b7f0 100644 --- a/mbsebbs/Makefile +++ b/mbsebbs/Makefile @@ -41,7 +41,7 @@ TARGET = mbsebbs mbnewusr ############################################################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: ${TARGET} diff --git a/mbsetup/Makefile b/mbsetup/Makefile index 6e9cd681..1f5e9c7f 100644 --- a/mbsetup/Makefile +++ b/mbsetup/Makefile @@ -28,7 +28,7 @@ OTHER = Makefile ############################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: mbsetup diff --git a/mbtask/Makefile b/mbtask/Makefile index 493dc499..c0e7206c 100644 --- a/mbtask/Makefile +++ b/mbtask/Makefile @@ -19,7 +19,7 @@ OTHER = Makefile issue issue.netbsd ############################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: mbtask diff --git a/mbutils/Makefile b/mbutils/Makefile index 261d150a..bdab0ff7 100644 --- a/mbutils/Makefile +++ b/mbutils/Makefile @@ -24,7 +24,7 @@ TARGET = mball mblang mbstat mbtoberep mbuser mbbw ############################################################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: ${TARGET} diff --git a/unix/Makefile b/unix/Makefile index ac53526b..013934c1 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -24,7 +24,7 @@ TARGET = mbuseradd mbpasswd mblogin ############################################################################################################# .c.o: - ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< + ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $< all: ${TARGET}