Commit 610c5c43 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add '-Wl,--as-needed' to avoid linking needless libraries.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40810 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cad4799f
...@@ -29,4 +29,5 @@ configure-options = ...@@ -29,4 +29,5 @@ configure-options =
environment = environment =
PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig
CPPFLAGS =-I${ncurses:location}/include/ -I${zlib:location}/include/ CPPFLAGS =-I${ncurses:location}/include/ -I${zlib:location}/include/
LDFLAGS =-L${garbage-collector:location}/lib -Wl,-rpath -Wl,${garbage-collector:location}/lib -L${ncurses:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -L${openssl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib LDFLAGS =-Wl,--as-needed -L${garbage-collector:location}/lib -Wl,-rpath -Wl,${garbage-collector:location}/lib -L${ncurses:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -L${openssl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib
a=a
\ No newline at end of file
...@@ -1404,12 +1404,10 @@ class AssertW3m(AssertSoftwareMixin): ...@@ -1404,12 +1404,10 @@ class AssertW3m(AssertSoftwareMixin):
def test_ld_w3m(self): def test_ld_w3m(self):
self.assertLibraryList('parts/w3m/bin/w3m', [ self.assertLibraryList('parts/w3m/bin/w3m', [
'libc', 'libc',
'libdl',
'libcrypto', 'libcrypto',
'libgc', 'libgc',
'libm', 'libm',
'libncurses', 'libncurses',
'libnsl',
'libssl', 'libssl',
], [ ], [
'garbage-collector', 'garbage-collector',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment