Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199536

Summary: x11-misc/stripclub does not respect CC/CXX/LD/CFLAGS/LDFLAGS, and fails to link with --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal CC: coldwind, desktop-misc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 203314    
Bug Blocks: 331933    

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-11-18 14:39:46 UTC
You might ask how do I know that it fails with --as-needed while it doesn't respect the configuration variables, the answer is quite easy actually: there is a bug in fltk-config, that I'll report soon enough if it isn't reported already.

g++ -g -Wall -I. `fltk-config --cflags` -DDEFAULT_BROWSER=\"mozilla-firefox\" -DPREFIX=\"/usr\"   -c -o switch.o switch.cpp
g++ -g -Wall -I. `fltk-config --cflags` -DDEFAULT_BROWSER=\"mozilla-firefox\" -DPREFIX=\"/usr\"   -c -o url.o url.cpp
gcc -g -Wall -I. `fltk-config --cflags` -DDEFAULT_BROWSER=\"mozilla-firefox\" -DPREFIX=\"/usr\"   -c -o util.o util.c
g++ -Wall -L/usr/X11R6/lib `fltk-config --ldflags` -lfltk -lfltk_images -lpcre -lXpm html.o http.o import.o interface.o load.o stripclub.o switch.o url.o util.o -o stripclub

As you can see the problem is quite simple: the libraries should go _after_ the object files.
Comment 1 Santiago M. Mola (RETIRED) gentoo-dev 2007-12-01 20:57:48 UTC
Fixed on -r1, x86 stabilization pending.