Skip to content

Commit

Permalink
build: allow CFLAGS_DEFAULT for libs
Browse files Browse the repository at this point in the history
For reference, see the "all:" target on line 26.

This should have been part of:
    2023-04-08 build: add LIBS variable
    ef14838
and:
    2018-06-28 build: add ability to generate top-level flag files
    3495923
  • Loading branch information
gperciva committed Feb 24, 2024
1 parent 256d486 commit 606a676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ toplevel: apisupport-config.h cflags-filter.sh \
# For "loop-back" building of a subdirectory
.PHONY: buildsubdir
buildsubdir: toplevel
export CFLAGS="$${CFLAGS:-${CFLAGS_DEFAULT}}"; \
. ./posix-flags.sh; \
. ./cpusupport-config.h; \
. ./cflags-filter.sh; \
Expand All @@ -75,6 +76,7 @@ buildsubdir: toplevel
# For "loop-back" building of libraries
.PHONY: libs
libs: apisupport-config.h cflags-filter.sh cpusupport-config.h posix-flags.sh
export CFLAGS="$${CFLAGS:-${CFLAGS_DEFAULT}}"; \
. ./posix-flags.sh; \
. ./cpusupport-config.h; \
. ./cflags-filter.sh; \
Expand Down

0 comments on commit 606a676

Please sign in to comment.