aboutsummaryrefslogtreecommitdiffstats
path: root/net/freeradius2
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-26 04:22:22 +0800
committerpav <pav@FreeBSD.org>2005-05-26 04:22:22 +0800
commit4f2451b05f95ffce410b9678977b9595ce06f956 (patch)
treedaa77fbcb5ed3c7155f56f4e4c012504a627e7c8 /net/freeradius2
parent87825146592c4d5222be3b60e16a6856c9cb285e (diff)
downloadfreebsd-ports-gnome-4f2451b05f95ffce410b9678977b9595ce06f956.tar.gz
freebsd-ports-gnome-4f2451b05f95ffce410b9678977b9595ce06f956.tar.zst
freebsd-ports-gnome-4f2451b05f95ffce410b9678977b9595ce06f956.zip
- Fix build when freeradius is already installed and WITH_PGSQL is selected
PR: ports/80883 Submitted by: Andrey V. Semyonov <wilfre@tcom.ru> Approved by: maintainer
Diffstat (limited to 'net/freeradius2')
-rw-r--r--net/freeradius2/files/patch-src-main-Makefile.in52
1 files changed, 52 insertions, 0 deletions
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