File: use_debian_packaged_libgzstream.patch

package info (click to toggle)
pirs 2.0.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,344 kB
  • sloc: cpp: 5,321; perl: 3,005; ansic: 592; makefile: 183; sh: 35
file content (32 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (5)
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
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 02 Aug 2016 12:12:20 +0200
Description: Replace Files-Excluded code copy of gzstream by Debian packaged version

--- a/src/stator/gcContCvgBias/Makefile
+++ b/src/stator/gcContCvgBias/Makefile
@@ -1,7 +1,5 @@
 ifeq ($(shell uname -s),Darwin)
 CPPFLAGS += -march=core2 -Bstatic -L/opt/local/lib -I/opt/local/include
-else
-CPPFLAGS += -static
 endif
 
 GCC_VERSION := $(shell gcc -dumpversion)
@@ -18,15 +16,13 @@ endif
 endif
 
 
-OBJ = gzstream.o self_util.o main.o stat_soap_coverage.o
+OBJ = self_util.o main.o stat_soap_coverage.o
 CC = g++
 LIBRARY = -O3 -pipe $(CPPFLAGS) -mtune=generic -pedantic -Wfloat-equal \
 #-Wall
 
 gc_coverage_bias:${OBJ}
-	${CC} -o gc_coverage_bias ${LIBRARY} ${OBJ} -lz
-gzstream.o:gzstream.h gzstream.cpp
-	${CC} -c ${LIBRARY} gzstream.h gzstream.cpp
+	${CC} -o gc_coverage_bias ${LIBRARY} ${OBJ} $(LDFLAGS) -lgzstream -lz
 self_util.o:self_util.cpp self_util.h
 	${CC} -c ${LIBRARY} self_util.cpp self_util.h
 main.o:main.cpp