summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSébastien Hinderer <seb@tarides.com>2023-03-09 11:19:19 +0100
committerSébastien Hinderer <seb@tarides.com>2023-03-14 17:34:39 +0100
commitb72b639e2ceade33e2237f73be926ba46897b5bf (patch)
tree8b1b4d999b584b5f62bc3f8582640459459a8622 /Makefile
parent4b87f5b676314f14cfe4581db6f3623423205f14 (diff)
downloadocaml-b72b639e2ceade33e2237f73be926ba46897b5bf.tar.gz
Build system: fix flag definitions for native PIC objects
In this target-specific definition, C and C preprocessor flags were mixed. This commit distinguishes one form the other.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e2f0c1c8a2..c66028733c 100644
--- a/Makefile
+++ b/Makefile
@@ -924,7 +924,8 @@ runtime/%.ni.$(O): OC_CPPFLAGS += $(OC_NATIVE_CPPFLAGS) $(ocamlruni_CPPFLAGS)
$(DEPDIR)/runtime/%.ni.$(D): \
OC_CPPFLAGS += $(OC_NATIVE_CPPFLAGS) $(ocamlruni_CPPFLAGS)
-runtime/%.npic.$(O): OC_CFLAGS += $(OC_NATIVE_CPPFLAGS) $(SHAREDLIB_CFLAGS)
+runtime/%.npic.$(O): OC_CFLAGS += $(SHAREDLIB_CFLAGS)
+runtime/%.npic.$(O): OC_CPPFLAGS += $(OC_NATIVE_CPPFLAGS)
$(DEPDIR)/runtime/%.npic.$(D): OC_CPPFLAGS += $(OC_NATIVE_CPPFLAGS)
## Compilation of runtime C files