After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 123477 - CFLAGS/CPPFLAGS/LDFLAGS in gar.conf.mk don't have desired effect
CFLAGS/CPPFLAGS/LDFLAGS in gar.conf.mk don't have desired effect
Status: RESOLVED FIXED
Product: GARNOME
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GARNOME Maintainers
garnome list
Depends on:
Blocks:
 
 
Reported: 2003-09-29 15:16 UTC by Jerry Talkington
Modified: 2005-07-05 18:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jerry Talkington 2003-09-29 15:16:20 UTC
The following lines in gar.conf.mk don't have the desired effect:
CPPFLAGS += -I$(DESTDIR)$(includedir) -I$(DESTDIR)/usr/X11R6/include
CFLAGS += -I$(DESTDIR)$(includedir) -I$(DESTDIR)/usr/X11R6/include
-L$(DESTDIR)$
(libdir) -L$(DESTDIR)/usr/X11R6/lib
LDFLAGS += -L$(DESTDIR)$(libdir) -L$(DESTDIR)/usr/X11R6/lib

There is a big fat warning about 5 lines before that say DESTDIR isn't
defined until install time, which is correct.  The result is that
-I/usr/X11R6/include and -L/usr/X11R6/lib get added to the search order,
when they shouldn't be, which will screw up some software (most notably
expat on darwin) that adds the current build directory after the LDFLAGS or
CFLAGS included search paths.

This also effects the PKG_CONFIG_PATH and the PATH/LD_LIBRARY_PATH settings.

Here are more sane settings that don't effect the search path adversely,
but have the intended results:

# allow us to link to libraries we installed
CPPFLAGS += -I$(includedir)
CFLAGS += -I$(includedir) -L$(libdir)
LDFLAGS += -L$(libdir)

# allow us to use programs we just built
PATH := $(bindir):$(sbindir):$(PATH)
LD_LIBRARY_PATH := $(libdir):$(LD_LIBRARY_PATH)

# This is for foo-config chaos
PKG_CONFIG_PATH=$(libdir)/pkgconfig:/usr/lib/pkgconfig
Comment 1 Paul Drain 2004-10-15 09:23:27 UTC
Mass re-assign
Comment 2 Paul Drain 2005-01-24 05:41:42 UTC
This is now the default behaviour in the Unstable GARNOME branch since the 2.9.0
release.

If nobody complains too loudly, the Stable branch will have the same behaviour
as of 2.10.
Comment 3 Karsten Bräckelmann 2005-07-05 18:34:43 UTC
No complaints obviously. The proposed solution works in stable and unstable
branches for quite some time.

Closing FIXED.