gsm: honor LDFLAGS. Fixes RELRO build.

This commit is contained in:
wiz 2018-01-17 12:03:01 +00:00
parent 89d843af6a
commit 20e2dfadc8
2 changed files with 4 additions and 4 deletions

View file

@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.10 2015/11/03 01:12:34 agc Exp $ $NetBSD: distinfo,v 1.11 2018/01/17 12:03:01 wiz Exp $
SHA1 (gsm-1.0.13.tar.gz) = 668b0a180039a50d379b3d5a22e78da4b1d90afc SHA1 (gsm-1.0.13.tar.gz) = 668b0a180039a50d379b3d5a22e78da4b1d90afc
RMD160 (gsm-1.0.13.tar.gz) = e44f70d481328038b3b16a25cc99b7855113db61 RMD160 (gsm-1.0.13.tar.gz) = e44f70d481328038b3b16a25cc99b7855113db61
SHA512 (gsm-1.0.13.tar.gz) = 0d0cf9e1e81e64cd84f588c1e4f0cb74b849d45e41fdebf860f63588084c73c7c5198bfe73a6c976bda5735ee516661d3db00afbb5cc5886a7ee3a7b31d673aa SHA512 (gsm-1.0.13.tar.gz) = 0d0cf9e1e81e64cd84f588c1e4f0cb74b849d45e41fdebf860f63588084c73c7c5198bfe73a6c976bda5735ee516661d3db00afbb5cc5886a7ee3a7b31d673aa
Size (gsm-1.0.13.tar.gz) = 65318 bytes Size (gsm-1.0.13.tar.gz) = 65318 bytes
SHA1 (patch-aa) = e50ac3bba1c8a6ccd54d6d035232eca739d3f9fa SHA1 (patch-aa) = e50ac3bba1c8a6ccd54d6d035232eca739d3f9fa
SHA1 (patch-ab) = b9af8e40884aeac19e7e5b11df27819408465b65 SHA1 (patch-ab) = 453b639aa7dc8196a16a750453c9d1cfd7b652a8
SHA1 (patch-ac) = 60d0f6cb6b119fdaf8dd23fbadf7cb6a64c95a4e SHA1 (patch-ac) = 60d0f6cb6b119fdaf8dd23fbadf7cb6a64c95a4e

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ab,v 1.10 2009/02/03 06:09:09 obache Exp $ $NetBSD: patch-ab,v 1.11 2018/01/17 12:03:01 wiz Exp $
--- Makefile.orig 2006-04-26 19:14:26.000000000 +0000 --- Makefile.orig 2006-04-26 19:14:26.000000000 +0000
+++ Makefile +++ Makefile
@ -110,7 +110,7 @@ $NetBSD: patch-ab,v 1.10 2009/02/03 06:09:09 obache Exp $
- $(AR) $(ARFLAGS) $(LIBGSM) $(GSM_OBJECTS) - $(AR) $(ARFLAGS) $(LIBGSM) $(GSM_OBJECTS)
- $(RANLIB) $(LIBGSM) - $(RANLIB) $(LIBGSM)
+ cd $(LIB) && \ + cd $(LIB) && \
+ $(LIBTOOL) --mode=link $(CC) -o `$(BASENAME) $@` \ + $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o `$(BASENAME) $@` \
+ $(GSM_OBJECTS:.o=.lo) \ + $(GSM_OBJECTS:.o=.lo) \
+ -rpath $(PREFIX)/lib -version-info 1:12 + -rpath $(PREFIX)/lib -version-info 1:12