Bugs item #1862709, was opened at 2008-01-02 16:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1862709&group_id=144022

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Binary Installation
Group: Latest release
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Macks (dmacks)
Assigned to: Nobody/Anonymous (nobody)
Summary: Lots of -I and -D flags passed to linker

Initial Comment:
They are. They shouldn't be. Mostly harmless, but those flags are all for the 
compiling (.cpp -> .o) stage, not the linking (.o -> .so) stage. It's a symptom 
of using the intuitive meaning of the various Makefile.am variables rather than 
their documented meanings.

CXXFLAGS is for *all* invocations of the c++ program, including compiling and 
linking. CPPFLAGS is for all compiling, both C and C++. So src/tool/Makefile.am:

synfig_CXXFLAGS = -lsynfig @SYNFIG_CFLAGS@

is wrong a few ways. The linker flag -lsynfig should only be passed to the 
linker (and already is, in synfig_LDADD), and @SYNFIG_CFLAGS@ should only be 
passed to the compiler (via synfig_CPPFLAGS).

@SYNFIG_CFLAGS@ is (mis)passed this same way in all Makefile.am, and similarly 
for some explicit -D flags and various other @*_CFLAGS@ variables.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1862709&group_id=144022

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to