MantisBT - Buildsystem
View Issue Details
0000387Buildsystem[All Projects] Generalpublic2013-05-03 18:522015-03-10 11:59
Reporteranthonyjbentley 
Assigned ToVincent Sanders 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Fixed in CI build #
Reported in CI build #
Summary0000387: Can't override CFLAGS at command line
DescriptionOn OpenBSD/NetSurf 3.0, overriding CFLAGS at the command line (which should be allowed, as per "The client may also override all toolchain settings, including: ..." in Makefile.top) causes the build to fail.

Example:

    $ cd /usr/ports/pobj/hubbub-0.2.0/libhubbub-0.2.0/ && gmake NSSHARED=/usr/local/share/netsurf-buildsystem CFLAGS="`pkg-config --cflags libparserutils`"
     COMPILE: src/parser.c
    In file included from src/parser.c:18:
    src/treebuilder/treebuilder.h:19:33: error: tokeniser/tokeniser.h: No such file or directory
    gmake: *** [build-OpenBSD-OpenBSD-release-lib-static/src_parser.o] Error 1

It seems that setting CFLAGS on the command line overrides the assignment on line 25 of hubbub's Makefile:

    CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
        -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)

Note that similar things happen with all NetSurf projects, not just hubbub.
Additional InformationImported from sourceforge bug http://sourceforge.net/support/tracker.php?aid=3612589 on Tue Dec 10 17:34:12 2013

TagsNo tags attached.
Attached Files

There are no notes attached to this issue.

Issue History
2013-12-10 17:41Vincent SandersNew Issue
2013-12-10 17:41Vincent SandersStatusnew => assigned
2013-12-10 17:41Vincent SandersAssigned To => Sourceforge Import placeholder
2013-12-11 16:55Vincent SandersProjectNetSurf => Buildsystem
2015-01-30 13:24Vincent SandersAssigned ToSourceforge Import placeholder => Vincent Sanders
2015-01-30 13:24Vincent SandersStatusassigned => acknowledged
2015-01-30 13:24Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=1410#r1410
2015-01-30 13:24Vincent SandersAdditional Information Updatedbug_revision_view_page.php?rev_id=1412#r1412
2015-03-10 11:59Vincent SandersResolutionno change required => open