Skip to content

Commit

Permalink
- add/update patches to introduce LDFLAGS to links in the package
Browse files Browse the repository at this point in the history
  identified by Charles Zmudzinski in pr pkg/32275
- use EXPORT_SYMBOLS_LDFLAGS as suggested by salo@
- resolves pkg/32275
  • Loading branch information
rtr committed Mar 11, 2008
1 parent 2414772 commit f416aec
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
5 changes: 4 additions & 1 deletion net/rp-l2tp/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2007/12/22 13:01:07 obache Exp $
# $NetBSD: Makefile,v 1.10.2.1 2008/03/11 08:53:34 rtr Exp $
#

DISTNAME= rp-l2tp-0.3
Expand All @@ -16,6 +16,9 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
USE_TOOLS+= gmake

LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
LDFLAGS.NetBSD+= -lutil

INSTALL_MAKE_FLAGS+= RPM_INSTALL_ROOT=${DESTDIR:Q}

PKG_DESTDIR_SUPPORT= user-destdir
Expand Down
5 changes: 3 additions & 2 deletions net/rp-l2tp/distinfo
@@ -1,12 +1,13 @@
$NetBSD: distinfo,v 1.4 2007/12/22 13:01:08 obache Exp $
$NetBSD: distinfo,v 1.4.2.1 2008/03/11 08:53:34 rtr Exp $

SHA1 (rp-l2tp-0.3.tar.gz) = 3f4f08a5271f0adf1dd90567851f1a8e223ecb72
RMD160 (rp-l2tp-0.3.tar.gz) = 25ed4a68a01c08f3acee1ce01a90673a568db55f
Size (rp-l2tp-0.3.tar.gz) = 191418 bytes
SHA1 (patch-aa) = a351d8bcea431bc47a0a375c770d07e059103841
SHA1 (patch-ab) = 4a30988989688b1cdc30fdd73edd7fd60509d2e3
SHA1 (patch-ab) = 31b9b78bace8ab5c1717944e630f296b81cbbe11
SHA1 (patch-ac) = ed6cb031b458027f7df8a97a051a1f12bc6b5e00
SHA1 (patch-ad) = 943de75b5928bca92ec739106f3c5679189557c3
SHA1 (patch-ae) = 62c6d5fb9ddd69467fbb6ed6b502add0ae646a29
SHA1 (patch-af) = 3fa6c660ca06ddf3ea49e33e31506f714f7ef9b5
SHA1 (patch-ag) = 5dc50f2ace17bb97717d628e9fdfe689443966c0
SHA1 (patch-ah) = fcac0fb3c264d68df1f2dbbc0d548311abdaaa2c
14 changes: 7 additions & 7 deletions net/rp-l2tp/patches/patch-ab
@@ -1,8 +1,8 @@
$NetBSD: patch-ab,v 1.2 2007/12/22 13:01:08 obache Exp $
$NetBSD: patch-ab,v 1.2.2.1 2008/03/11 08:53:34 rtr Exp $

--- Makefile.in.orig 2002-09-30 21:33:55.000000000 +0100
+++ Makefile.in 2003-12-18 10:24:07.000000000 +0000
@@ -26,11 +26,20 @@
--- Makefile.in.orig 2002-10-01 06:33:55.000000000 +1000
+++ Makefile.in
@@ -26,11 +26,20 @@ install=@INSTALL@
install_dir=@INSTALL@ -d
sbindir=@sbindir@

Expand All @@ -25,16 +25,16 @@ $NetBSD: patch-ab,v 1.2 2007/12/22 13:01:08 obache Exp $

TARGETS=l2tpd libl2tp.a handlers

@@ -43,7 +52,7 @@
@@ -43,7 +52,7 @@ libl2tp.a: $(OBJS)

l2tpd: libl2tp.a libevent/libevent.a
$(MAKE) -C handlers
- @CC@ -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
+ @CC@ -o l2tpd $(DYNAMIC_FLAGS) $(OBJS) @LIBEVENT@/*.o $(EXTRA_LIBS)
+ @CC@ $(LDFLAGS) -o l2tpd $(DYNAMIC_FLAGS) $(OBJS) @LIBEVENT@/*.o $(EXTRA_LIBS)

libevent/libevent.a:
test -d libevent || ln -s ../libevent .
@@ -82,8 +91,8 @@
@@ -82,8 +91,8 @@ distclean: clean
install: all
-mkdir -p $(RPM_INSTALL_ROOT)$(sbindir)
$(install) -m 755 -s l2tpd $(RPM_INSTALL_ROOT)$(sbindir)
Expand Down
17 changes: 17 additions & 0 deletions net/rp-l2tp/patches/patch-ah
@@ -0,0 +1,17 @@
$NetBSD: patch-ah,v 1.1.2.1 2008/03/11 08:53:34 rtr Exp $

--- handlers/Makefile.in.orig 2008-03-10 15:31:14.000000000 +1100
+++ handlers/Makefile.in
@@ -28,10 +28,10 @@ cmd-control.o: cmd-control.c
gcc $(CFLAGS) -fPIC -c -o $@ $<

sync-pppd.so: pty.o sync-pppd.o
- gcc -shared -o $@ $^
+ gcc -shared $(LDFLAGS) -o $@ $^

cmd.so: cmd.o dstring.o
- gcc -shared -o $@ $^
+ gcc -shared $(LDFLAGS) -o $@ $^

clean:
rm -f *.so *.o *~

0 comments on commit f416aec

Please sign in to comment.