public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-dialup/rp-l2tp/files: rp-l2tp-0.4-flags.patch
@ 2008-10-18  8:50 Alin Nastac (mrness)
  0 siblings, 0 replies; only message in thread
From: Alin Nastac (mrness) @ 2008-10-18  8:50 UTC (permalink / raw
  To: gentoo-commits

mrness      08/10/18 08:50:27

  Added:                rp-l2tp-0.4-flags.patch
  Log:
  Build with user specified CFLAGS/LDFLAGS (#240880).
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.1                  net-dialup/rp-l2tp/files/rp-l2tp-0.4-flags.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/rp-l2tp/files/rp-l2tp-0.4-flags.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/rp-l2tp/files/rp-l2tp-0.4-flags.patch?rev=1.1&content-type=text/plain

Index: rp-l2tp-0.4-flags.patch
===================================================================
diff -ru rp-l2tp-0.4.orig/handlers/Makefile.in rp-l2tp-0.4/handlers/Makefile.in
--- rp-l2tp-0.4.orig/handlers/Makefile.in	2008-10-18 08:35:39.000000000 +0000
+++ rp-l2tp-0.4/handlers/Makefile.in	2008-10-18 08:47:02.000000000 +0000
@@ -15,24 +15,24 @@
 
 OBJS=pty.o sync-pppd.o dstring.o
 SRCS=$(OBJS:.o=.c)
-CFLAGS=-g -O2 -I.. -I../libevent -I../../libevent -Wall
+CFLAGS=@CFLAGS@ -I.. -I../libevent -I../../libevent -Wall
 
 all: $(HANDLERS) l2tp-control
 
 l2tp-control: cmd-control.o
-	gcc -o l2tp-control cmd-control.o
+	gcc $(LDFLAGS) -o l2tp-control cmd-control.o
 
 cmd-control.o: cmd-control.c
-	gcc -c -o $@ $^
+	gcc $(CFLAGS) -c -o $@ $^
 
 %.o: %.c
 	gcc $(CFLAGS) -fPIC -c -o $@ $<
 
 sync-pppd.so: pty.o sync-pppd.o
-	gcc -shared -o $@ $^
+	gcc $(LDFLAGS) -shared -o $@ $^
 
 cmd.so: cmd.o dstring.o
-	gcc -shared -o $@ $^
+	gcc $(LDFLAGS) -shared -o $@ $^
 
 clean:
 	rm -f *.so *.o *~
diff -ru rp-l2tp-0.4.orig/Makefile.in rp-l2tp-0.4/Makefile.in
--- rp-l2tp-0.4.orig/Makefile.in	2008-10-18 08:35:39.000000000 +0000
+++ rp-l2tp-0.4/Makefile.in	2008-10-18 08:40:38.000000000 +0000
@@ -31,7 +31,7 @@
 EXTRA_LIBS=@LIBEVENT@/*.o -ldl
 
 SRCS=$(OBJS:.o=.c)
-CFLAGS=-g -I.. -I@LIBEVENT@ -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(prefix)\" -DLIBDIR=\"$(libdir)\"
+CFLAGS=@CFLAGS@ -I.. -I@LIBEVENT@ -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(prefix)\" -DLIBDIR=\"$(libdir)\"
 
 TARGETS=l2tpd libl2tp.a handlers
 
@@ -44,7 +44,7 @@
 
 l2tpd: libl2tp.a libevent/libevent.a
 	$(MAKE) -C handlers
-	@CC@ -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
+	@CC@ $(LDFLAGS) -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
 
 libevent/libevent.a:
 	test -d libevent || ln -s ../libevent .






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-18  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-18  8:50 [gentoo-commits] gentoo-x86 commit in net-dialup/rp-l2tp/files: rp-l2tp-0.4-flags.patch Alin Nastac (mrness)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox