summarylogtreecommitdiffstats
path: root/linrad-obey-cflags-and-ldflags.patch
blob: 60a46a11dbcb77bd63b4f1cacc91181998a7f529 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
diff --unified --recursive --text ./linrad-05.02.orig/Makefile.in linrad-05.02.new/Makefile.in
--- ./linrad-05.02.orig/Makefile.in	2023-02-27 22:18:59.000000000 +0000
+++ linrad-05.02.new/Makefile.in	2025-01-02 18:42:13.212082151 +0000
@@ -58,7 +58,7 @@
 -DHAVE_CUFFT=@CUFFT32_OK@ \
 -Wreturn-type -Wformat @M32@ -Wunused -Wcomment -Wchar-subscripts -Wshadow \
 -Wuninitialized -Wparentheses -Wstrict-prototypes -Werror -ffast-math \
--Wundef -fomit-frame-pointer -c -o
+-Wundef -fomit-frame-pointer $(CFLAGS) -c -o
 
 CFLN	= -O2 -DOSNUM=1 @X11_32_INC@ -W -Wall -DCPU=@CPU@ @OSSINC32@ \
 -DHAVE_SHM=@LIBXEXT32_OK@ -DHAVE_SVGALIB=@CONSOLE32_OK@ -Wimplicit \
@@ -67,7 +67,7 @@
 -Wconversion \
 -Wreturn-type -Wformat @M32@ -Wunused -Wcomment -Wchar-subscripts -Wshadow \
 -Wuninitialized -Wparentheses -Wstrict-prototypes -Werror -ffast-math \
--Wundef -fomit-frame-pointer -c -o
+-Wundef -fomit-frame-pointer $(CFLAGS) -c -o
 
 CFLOCL	= -O2 -DOSNUM=1 @X11_32_INC@ -W -Wall -DCPU=@CPU@ @OSSINC32@ \
 -DHAVE_SHM=@LIBXEXT32_OK@ -Wimplicit -Wbad-function-cast -DOSSD=@OSSHDR32@ \
@@ -76,13 +76,13 @@
 @OCLPROGS32@ -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DHAVE_CUFFT=@CUFFT32_OK@ \
 -Wreturn-type -Wformat @M32@ -Wunused -Wcomment -Wchar-subscripts -Wshadow \
 -Wuninitialized -Wparentheses -Werror -ffast-math \
--Wundef -fomit-frame-pointer -c -o
+-Wundef -fomit-frame-pointer $(CFLAGS) -c -o
 
 CFW	= -O2 -DOSNUM=2 -W -Wall -Wimplicit -DIA64=0 -DHAVE_CUFFT=0 \
 -DCPU=CPU_INTEL -DSERVER=@MAKE_SERVER@ -DHAVE_OSS=0 -DOPENCL_PRESENT=0 \
 @M32@ -Wreturn-type -Wformat -Wunused -Wcomment -Wchar-subscripts \
 -Wshadow -Wuninitialized -Wparentheses -Wstrict-prototypes -Werror \
--ffast-math -Wundef -fomit-frame-pointer -c -o
+-ffast-math -Wundef -fomit-frame-pointer $(CFLAGS) -c -o
 
 # -fsyntax-only -pedantic -pedantic-errors -w -Wextra -Wall -Waddress -Waggrega
 
@@ -91,13 +91,13 @@
 @M32@ -Wreturn-type -Wformat -Wunused -Wcomment -Wchar-subscripts \
 -Wconversion \
 -Wshadow -Wuninitialized -Wparentheses -Wstrict-prototypes -Werror \
--ffast-math -Wundef -fomit-frame-pointer -c -o
+-ffast-math -Wundef -fomit-frame-pointer $(CFLAGS) -c -o
 
 CFW64	= -O2 -DOSNUM=2 -W -Wall -Wimplicit -DIA64=1 -DHAVE_CUFFT=0 \
 -DCPU=CPU_INTEL -DSERVER=@MAKE_SERVER@ -DHAVE_OSS=0 -DOPENCL_PRESENT=0 \
 @M64@ -Wreturn-type -Wformat -Wunused -Wcomment -Wchar-subscripts \
 -Wshadow -Wuninitialized -Wparentheses -Wstrict-prototypes -Werror \
--ffast-math -Wundef -fomit-frame-pointer -c -o
+-ffast-math -Wundef -fomit-frame-pointer $(CFLAGS) -c -o
 
 CFL64	= -O2 -DOSNUM=1 @X11_64_INC@ -W -Wall -DHAVE_OSS=@OSS64_H@ \
 -DCPU=@CPU@ -DHAVE_SHM=@LIBXEXT64_OK@ -DHAVE_X11=@X11_64_ALL_OK@ \
@@ -106,7 +106,7 @@
 -Wimplicit -Wreturn-type -Wformat @M64@ -Wunused -Wcomment -DOSSD=@OSSHDR64@ \
 -Wchar-subscripts -Wshadow -Wuninitialized -Wparentheses @OSSINC64@ \
 -Wstrict-prototypes -Werror -ffast-math -Wundef -fomit-frame-pointer \
--c -o
+$(CFLAGS) -c -o
 
 CFLN64	= -O2 -DOSNUM=1 @X11_64_INC@ -W -Wall -DHAVE_OSS=@OSS64_H@ \
 -DCPU=@CPU@ -DHAVE_SHM=@LIBXEXT64_OK@ -DHAVE_SVGALIB=@CONSOLE64_OK@ \
@@ -115,7 +115,7 @@
 -Wconversion -Wimplicit -Wreturn-type -Wformat @M64@ -Wunused -Wcomment \
 -Wchar-subscripts -Wshadow -Wuninitialized -Wparentheses \
 -Wstrict-prototypes -Werror -ffast-math -Wundef -fomit-frame-pointer \
--c -o
+$(CFLAGS) -c -o
 
 CFLOCL64	= -O2 -DOSNUM=1 @X11_64_INC@ -W -Wall -DHAVE_OSS=@OSS64_H@ \
 -DCPU=@CPU@ -DHAVE_SHM=@LIBXEXT64_OK@ -DHAVE_X11=@X11_64_ALL_OK@ \
@@ -123,7 +123,7 @@
 @OCLPROGS64@ -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DHAVE_CUFFT=@CUFFT64_OK@ \
 -Wimplicit -Wreturn-type -Wformat @M64@ -Wunused -Wcomment -DOSSD=@OSSHDR64@ \
 -Wchar-subscripts -Wshadow -Wuninitialized -Wparentheses @OSSINC64@ \
--Werror -ffast-math -Wundef -fomit-frame-pointer \
+-Werror -ffast-math -Wundef -fomit-frame-pointer $(CFLAGS) \
 -c -o
 
 # Define dependencies for routines used both in Linux and Windows
@@ -1717,7 +1717,7 @@
 bladerf.ol mirics.ol sdrplay2.ol sdrplay3.ol openhpsdr.ol oclprogs.ol \
 loadalsa.ol cloudiq.ol lfxsys.ol airspyhf.ol siganal_graph.ol
 
-	${CC} @M32@ -o xlinrad @ST@ \
+	${CC} $(LDFLAGS) @M32@ -o xlinrad @ST@ \
 xmain.ol xvar.ol ui.ol lsetad.ol fft1.ol buf.ol lvar.ol radar.ol \
 mouse.ol wide_graph.ol fft0.ol adtest.ol hires_graph.ol elad.ol \
 baseb_graph.ol mix2.ol afc_graph.ol hwaredriver.ol affinity.ol \
@@ -2064,7 +2064,7 @@
 soundcard.om oclprogs.om loadalsa.om cloudiq.om lfxsys.om loadusb.om \
 airspyhf.om siganal_graph.om
 
-	${CC} @M64@ -o xlinrad64 @ST@ \
+	${CC} $(LDFLAGS) @M64@ -o xlinrad64 @ST@ \
 xmain.om xvar.om ui.om lsetad.om fft1.om buf.om lvar.om radar.om \
 mouse.om wide_graph.om fft0.om adtest.om hires_graph.om elad.om \
 baseb_graph.om mix2.om afc_graph.om hwaredriver.om loadusb.om \