blob: 113a29a9bd7b5a82ec6c31e2a819be0b1f9b96d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff --git a/Makefile b/Makefile
index b591cb9a..4d711028 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,14 @@ else
LIBGPR_TYPES=static
endif
+ifneq ($(strip $(CFLAGS)),)
+ CARGS := -cargs $(CFLAGS)
+endif
+
+ifneq ($(strip $(LDFLAGS)),)
+ LARGS := -largs $(LDFLAGS)
+endif
+
# Used to pass extra options to GPRBUILD, like -d for instance
GPRBUILD_OPTIONS=
@@ -75,7 +83,7 @@ LIB_INSTALLER=gprinstall -p -f --target=$(TARGET) $(RBD) --prefix=${prefix}
CLEANER=gprclean -q $(RBD)
GPRBUILD_BUILDER=$(BUILDER) $(GPRBUILD_GPR) \
- -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable
+ -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable $(CARGS) $(LARGS)
LIBGPR_BUILDER=$(BUILDER) $(GPR_GPR)
LIBGPR_INSTALLER=$(LIB_INSTALLER) $(GPR_GPR) -XBUILD=${BUILD} \
--install-name=gpr --build-var=LIBRARY_TYPE $(GTARGET)
|