Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199536 - x11-misc/stripclub does not respect CC/CXX/LD/CFLAGS/LDFLAGS, and fails to link with --as-needed
Summary: x11-misc/stripclub does not respect CC/CXX/LD/CFLAGS/LDFLAGS, and fails to li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on: 203314
Blocks: ldflags
  Show dependency tree
 
Reported: 2007-11-18 14:39 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-08-09 21:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.