Skip to content

Commit

Permalink
fix build error: include flags in test build
Browse files Browse the repository at this point in the history
util.test includes our "common.h" which in turn includes <libintl.h>
which at least on MacOS needs special compiler flags to be found.

To fix errors on the MacOS test build, we need to use the GBSCFLAGS
that configure has determined during the test build.
  • Loading branch information
mmitch committed Jan 26, 2025
1 parent 925fef5 commit dd77741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ config.mk: configure

%.test: %.c
@echo TEST $<
$(Q)$(HOSTCC) -DENABLE_TEST=1 -o $@$(binsuffix) $< -lm
$(Q)$(HOSTCC) -DENABLE_TEST=1 $(GBSCFLAGS) -o $@$(binsuffix) $< -lm
$(Q)./$@$(binsuffix)
$(Q)rm ./$@$(binsuffix)

Expand Down

0 comments on commit dd77741

Please sign in to comment.