2024-07-15 23:57 BST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000387Buildsystem[All Projects] Generalpublic2015-03-10 11:59
Assigned ToVincent Sanders 
PrioritynormalSeverityminorReproducibilityhave not tried
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.


    $ 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.
Fixed in CI build #
Reported in CI build #
Attached Files


There are no notes attached to this issue.

-Issue History
Date Modified Username Field Change
2013-12-10 17:41 Vincent Sanders New Issue
2013-12-10 17:41 Vincent Sanders Status new => assigned
2013-12-10 17:41 Vincent Sanders Assigned To => Sourceforge Import placeholder
2013-12-11 16:55 Vincent Sanders Project NetSurf => Buildsystem
2015-01-30 13:24 Vincent Sanders Assigned To Sourceforge Import placeholder => Vincent Sanders
2015-01-30 13:24 Vincent Sanders Status assigned => acknowledged
2015-01-30 13:24 Vincent Sanders Description Updated View Revisions
2015-01-30 13:24 Vincent Sanders Additional Information Updated View Revisions
2015-03-10 11:59 Vincent Sanders Resolution no change required => open
+Issue History