From 4f2451b05f95ffce410b9678977b9595ce06f956 Mon Sep 17 00:00:00 2001 From: pav Date: Wed, 25 May 2005 20:22:22 +0000 Subject: - Fix build when freeradius is already installed and WITH_PGSQL is selected PR: ports/80883 Submitted by: Andrey V. Semyonov Approved by: maintainer --- net/freeradius2/files/patch-src-main-Makefile.in | 52 ++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 net/freeradius2/files/patch-src-main-Makefile.in (limited to 'net/freeradius2') diff --git a/net/freeradius2/files/patch-src-main-Makefile.in b/net/freeradius2/files/patch-src-main-Makefile.in new file mode 100644 index 000000000000..2c5e8d35b0f9 --- /dev/null +++ b/net/freeradius2/files/patch-src-main-Makefile.in @@ -0,0 +1,52 @@ +--- src/main/Makefile.in.orig Wed Jun 2 20:17:06 2004 ++++ src/main/Makefile.in Wed May 11 13:18:27 2005 +@@ -14,7 +14,7 @@ + CFLAGS += -DHOSTINFO=\"${HOSTINFO}\" + CFLAGS += -DRADIUSD_VERSION=\"${RADIUSD_VERSION}\" + CFLAGS += $(SNMP_INCLUDE) +-LDFLAGS += -L../lib ++LDFLAGS_MAIN = -L../lib $(LDFLAGS) + MODULE_LIBS = $(STATIC_MODULES) + MODULE_OBJS = + VFLAGS = -DRADIUSD_MAJOR_VERSION=$(RADIUSD_MAJOR_VERSION) +@@ -52,7 +52,7 @@ + + radiusd: $(SERVER_OBJS) ../lib/libradius.a $(MODULE_OBJS) + $(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \ +- $(CFLAGS) $(LDFLAGS) -o $@ \ ++ $(CFLAGS) $(LDFLAGS_MAIN) -o $@ \ + $(SERVER_OBJS) $(LCRYPT) $(MODULE_LIBS) $(LIBS) \ + $(PTHREADLIB) $(LIBLTDL) $(LCRYPT) + +@@ -123,13 +123,13 @@ + $(CC) $(CFLAGS) -o radius_snmp.o -c radius_snmp.c + + radclient: radclient.o ../lib/libradius.a +- $(CC) $(CFLAGS) $(LDFLAGS) -o radclient radclient.o $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS_MAIN) -o radclient radclient.o $(LIBS) + + radclient.o: radclient.c $(INCLUDES) + $(CC) $(CFLAGS) -c radclient.c + + radrelay: radrelay.o mainconfig.o util.o nas.o client.o log.o conffile.o files.o xlat.o ../lib/libradius.a +- $(CC) $(CFLAGS) $(LDFLAGS) -o radrelay radrelay.o mainconfig.o util.o nas.o client.o log.o conffile.o files.o xlat.o $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS_MAIN) -o radrelay radrelay.o mainconfig.o util.o nas.o client.o log.o conffile.o files.o xlat.o $(LIBS) + + radrelay.o: radrelay.c $(INCLUDES) + $(CC) $(CFLAGS) -c radrelay.c +@@ -138,13 +138,13 @@ + $(CC) $(CFLAGS) -c radwho.c + + radwho: radwho.o mainconfig.o util.o nas.o client.o log.o conffile.o files.o xlat.o +- $(CC) $(LDFLAGS) -o radwho radwho.o mainconfig.o util.o nas.o client.o log.o conffile.o files.o xlat.o $(LIBS) ++ $(CC) $(LDFLAGS_MAIN) -o radwho radwho.o mainconfig.o util.o nas.o client.o log.o conffile.o files.o xlat.o $(LIBS) + + radzap.o: radzap.c $(INCLUDES) + $(CC) $(CFLAGS) -c radzap.c + + radzap: radzap.o mainconfig.o util.o nas.o log.o client.o conffile.o files.o xlat.o +- $(CC) $(CFLAGS) $(LDFLAGS) -o radzap radzap.o mainconfig.o util.o nas.o log.o client.o conffile.o files.o xlat.o $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS_MAIN) -o radzap radzap.o mainconfig.o util.o nas.o log.o client.o conffile.o files.o xlat.o $(LIBS) + + clean: + rm -rf *.o *.so *~ $(BINARIES) .libs -- cgit