File: inject-buildflags.patch

package info (click to toggle)
intelrdfpmath 2.0u2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,204 kB
  • sloc: ansic: 310,457; makefile: 397; sh: 3
file content (44 lines) | stat: -rw-r--r-- 1,750 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Inject build flags at several places
 - ensure that CFLAGS are used when compiling files under LIBRARY/float128/
 - inject CPPFLAGS everywhere
Author: Sébastien Villemot
Bug-Debian: https://bugs.debian.org/970790
Forwarded: no
Last-Update: 2020-09-23
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/LIBRARY/makefile
+++ b/LIBRARY/makefile
@@ -349,12 +349,12 @@
 $(OBJ_DIR)/bid32_div.$O    :: $(SRC_DIR)/bid_div_macros.h
 
 $(BID_TRANS_OBJS)    :: $(OBJ_DIR)/%.$O : $(SRC_DIR)/%.c $(SRC_DIR)/bid_trans.h
-	$(CC) -c $(FO)$@ $(CFLAGS) $(BID_BLD_FLAGS) $<
+	$(CC) -c $(FO)$@ $(CPPFLAGS) $(CFLAGS) $(BID_BLD_FLAGS) $<
 
 
 $(BID_INTERNAL_OBJS) :: $(OBJ_DIR)/%.$O : $(SRC_DIR)/%.c \
                         $(SRC_DIR)/bid_internal.h
-	$(CC) -c $(FO)$@ $(CFLAGS) $(BID_BLD_FLAGS) $<
+	$(CC) -c $(FO)$@ $(CPPFLAGS) $(CFLAGS) $(BID_BLD_FLAGS) $<
 
 $(SRC_DIR)/bid_trans.h : $(SRC_DIR)/bid_internal.h
 	touch $@
@@ -399,7 +399,7 @@
 F128_PLATFORM_FLAGS := $(foreach n, IML_HOST_ARCH IML_HOST_OS CC_NAME \
                         ,-D$(call ToLower,$($n)))
 
-F128_CFLAGS := $(CFLAGS_OPT) -DUSE_NATIVE_QUAD_TYPE=0 $(F128_PLATFORM_FLAGS)
+F128_CFLAGS := $(CFLAGS) -DUSE_NATIVE_QUAD_TYPE=0 $(F128_PLATFORM_FLAGS)
 
 F128_HDR_NAMES := bessel cons int  lgamma powi sqrt     bid  erf inv_hyper \
                   log    pow  trig cbrt   exp  inv_trig mod
@@ -430,7 +430,7 @@
 $(F128_HDR_OBJS) :: $(OBJ_DIR)/dpml_ux_%.$O : $(F128_DIR)/dpml_%_x.h
 
 $(F128_OBJS) :: $(OBJ_DIR)/%.$O : $(F128_DIR)/%.c $(F128_DIR)/dpml_ux.h
-	$(CC) -c $(FO)$@ $(F128_CFLAGS) $<
+	$(CC) -c $(FO)$@ $(CPPFLAGS) $(F128_CFLAGS) $<
 
 
 # =============================================================================