Subject: Re: pkg/29470
To: None <solaris-pkg-people@netbsd.org, gnats-admin@netbsd.org,>
From: Eric Boutilier <Eric.Boutilier@Sun.COM>
List: pkgsrc-bugs
Date: 03/02/2005 21:59:02
The following reply was made to PR pkg/29470; it has been noted by GNATS.
From: Eric Boutilier <Eric.Boutilier@Sun.COM>
To: gnats-bugs@netbsd.org
Cc: Eric Boutilier <boutilier@speakeasy.net>
Subject: Re: pkg/29470
Date: Wed, 2 Mar 2005 15:54:00 -0600 (CST)
Can I propose that we fix this by creating a patch specifically
for popt? I haven't run accross any other packages that try to
link statically to system libraries, so doing a global fix seems
like overkill to me.
My workaround has been to first do "make patch" in devel/popt,
manually change Makefile.in as shown below and, then "make install".
Eric
--- Makefile.orig Wed Mar 2 15:45:52 2005
+++ Makefile.in Wed Mar 2 15:46:02 2005
@@ -132,13 +132,13 @@
noinst_PROGRAMS = test1 test2 test3
test1_SOURCES = test1.c
-test1_LDFLAGS = -all-static
+test1_LDFLAGS =
test1_LDADD = $(lib_LTLIBRARIES) $(LIBINTL)
test2_SOURCES = test2.c
-test2_LDFLAGS = -all-static
+test2_LDFLAGS =
test2_LDADD = $(lib_LTLIBRARIES) $(LIBINTL)
test3_SOURCES = test3.c
-test3_LDFLAGS = -all-static
+test3_LDFLAGS =
test3_LDADD = $(lib_LTLIBRARIES) $(LIBINTL)
noinst_SCRIPTS = testit.sh