]> git.pld-linux.org Git - packages/cdflib.git/commitdiff
- fix linking with libcdf
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Mar 2014 16:56:47 +0000 (17:56 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Mar 2014 16:56:47 +0000 (17:56 +0100)
- added opt patch (use optflags for tools)

cdflib-opt.patch [new file with mode: 0644]
cdflib.spec

diff --git a/cdflib-opt.patch b/cdflib-opt.patch
new file mode 100644 (file)
index 0000000..6969d89
--- /dev/null
@@ -0,0 +1,20 @@
+--- cdf35_0-dist/Makefile.orig 2013-09-09 18:31:16.000000000 +0200
++++ cdf35_0-dist/Makefile      2014-03-08 17:36:13.311830189 +0100
+@@ -781,7 +781,7 @@
+       @cd $(TOOLSsrcDIR); $(MAKE) \
+ "CURSES=$(AND.$(CURSES).$(CURSES_$(OS)_$(ENV)))" \
+ "CCx=$(CC_$(OS)_$(ENV))" \
+-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \
++"COPTIONS=$(UCOPTIONS) $(COPTIONS_$(OS)_$(ENV))" \
+ "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \
+ "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \
+ "CURSESLIB=$(CURSESLIB_$(OS)_$(ENV))" \
+@@ -793,7 +793,7 @@
+ "SHARED=$(AND.$(SHARED).$(SHARED_$(OS)))" \
+ "FOPTIONS=$(FOPTIONS_$(OS)) $(FOPTIONS_$(OS)_$(ENV))" \
+ "FOPTIONSld=$(FOPTIONSld_$(OS)) $(FOPTIONSld_$(OS)_$(ENV))" \
+-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \
++"COPTIONS=$(UCOPTIONS) $(COPTIONS_$(OS)_$(ENV))" \
+ "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \
+ "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \
+ "SHAREDEXT=$(SHAREDEXT_$(OS))" \
index 3115c10bb5ff0a9f5c35740687b0d1273751be7e..bf989f5cbf932c5ceb1b0c27745f63e453520c15 100644 (file)
@@ -8,6 +8,7 @@ Group:          Libraries
 # see http://cdf.gsfc.nasa.gov/html/sw_and_docs.html
 Source0:       http://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/cdf35_0/linux/cdf35_0-dist-all.tar.gz
 # Source0-md5: 61dcabe51427e03f83b8a6dcf9d4dfd4
+Patch0:                %{name}-opt.patch
 URL:           http://cdf.gsfc.nasa.gov/cdf_home.html
 BuildRequires: gcc-fortran >= 6:4.4.2
 BuildRequires: ncurses-devel
@@ -58,13 +59,19 @@ API Javy do biblioteki CDF.
 
 %prep
 %setup -q -n cdf35_0-dist
+%patch0 -p1
+
+# note: included zlib (src/lib/zlib) is modified (at last public symbol names)
 
 %build
 %{__make} all \
        OS=linux \
        ENV=gnu \
        CC_linux_gnu="%{__cc}" \
+       LD_linux_gnu="%{__cc}" \
        LIBCDFa="../lib/libcdf.so" \
+       LIBs1="-L../lib -lcdf -lm" \
+       LIBs2="-L../lib -lcdf -lncurses -lm" \
        UCOPTIONS="%{rpmcflags}"
 
 %install
This page took 0.140097 seconds and 4 git commands to generate.