Any time I attempt to emerge samba with LDFLAGS set in my make.conf, the build will die saying: PYTHON_CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -I/usr/include/mysql -march=athlon64 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -march=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -I/usr/include/mysql -march=athlon64 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -Iinclude -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source/include -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source/ubiqx -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source/smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/var/tmp/portage/samba-3.0.8/work/samba-3.0.8/source " \ LIBS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s -Wl,-rpath,/usr/lib -lcrypt -lnsl -ldl " \ python python/setup.py build Compiling utils/debug2html.c Unknown entry '-s' in $LIBS variable passed to setup.py make: *** [python_ext] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: net-fs/samba-3.0.8 failed. !!! Function src_compile, Line 212, Exitcode 2 !!! SAMBA make everything error !!! If you need support, post the topmost build error, NOT this status message. The revelant lines of my /etc/make.conf are: CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -m3dnow -ftracer -fPIC" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s" ACCEPT_KEYWORDS="amd64" Commenting out my LDFLAGS results in a successfull compile. Reproducible: Always Steps to Reproduce: 1. add to /etc/make.conf: LDFLAGS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s" 2. emerge net-fs/samba-3.0.8 (or a previous ebuild) Actual Results: The emerge process fails with: "Unknown entry '-s' in $LIBS variable passed to setup.py" Expected Results: Successful emerge
there's good work done on it: see bug 69034 *** This bug has been marked as a duplicate of 69034 ***