[pnetcdf] 07/08: Link rule for shared lib
Alastair McKinstry
mckinstry at moszumanska.debian.org
Sun Jan 24 09:06:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch debian/master
in repository pnetcdf.
commit b303878ef1b425128e28168667ae844fc1c7080f
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Mon Jan 18 01:59:36 2016 +0000
Link rule for shared lib
---
debian/control | 32 ++++++++++++++++----------------
debian/rules | 13 +++++++++++--
2 files changed, 27 insertions(+), 18 deletions(-)
diff --git a/debian/control b/debian/control
index 6628455..883d571 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
Source: pnetcdf
Section: science
Priority: optional
-Maintainer: Alastair McKinstry <mckinstey at debian.org>
+Maintainer: Alastair McKinstry <mckinstry at debian.org>
Build-Depends: autoconf, automake, dh-autoreconf,
gfortran, mpi-default-dev,
texlive-latex-base, ghostscript,
@@ -42,19 +42,19 @@ Description: Programs for reading and writing parallel NetCDF files
that supports more data types and allows users to define large dimensions,
attributes, and variables (>2B elements).
-#Package: libpnetcdf0d
-#Architecture: any
-#Section: libs
-#Depends: ${shlibs:Depends},
-# ${misc:Depends}
-#Description: Libraryfor reading and writing parallel NetCDF files
-# PnetCDF provides high-performance parallel I/O while still
-# maintaining file-format compatibility with Unidata's NetCDF,
-# specifically the formats of CDF-1 and CDF-2.
-# .
-# In addition, PnetCDF supports the CDF-5 file format, an extension of CDF-2,
-# that supports more data types and allows users to define large dimensions,
-# attributes, and variables (>2B elements).
-# .
-# This package provides the static library libpnetcdf.a
+Package: libpnetcdf0d
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: Libraryfor reading and writing parallel NetCDF files
+ PnetCDF provides high-performance parallel I/O while still
+ maintaining file-format compatibility with Unidata's NetCDF,
+ specifically the formats of CDF-1 and CDF-2.
+ .
+ In addition, PnetCDF supports the CDF-5 file format, an extension of CDF-2,
+ that supports more data types and allows users to define large dimensions,
+ attributes, and variables (>2B elements).
+ .
+ This package provides the static library libpnetcdf.a
diff --git a/debian/rules b/debian/rules
index 6b6193c..64ab78d 100644
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,11 @@ LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
# To enable all, uncomment following line
DEB_BUILD_MAINT_OPTIONS:= hardening=+all
DEB_CFLAGS_MAINT_APPEND:= -Wall -pedantic
+DEB_CXXFLAGS_MAINT_APPEND:= -Wall -pedantic
+DEB_FCFLAGS_MAINT_APPEND:= -Wall -pedantic
+DEB_FFLAGS_MAINT_APPEND:= -Wall -pedantic
+
+SHLIB=libpnetcdf.so.0d
# The magic debhelper rule
%:
@@ -20,11 +25,15 @@ override_dh_auto_clean:
override_dh_auto_configure:
dh_auto_configure --builddirectory=build-static
dh_auto_configure --builddirectory=build-shared -- \
- CFLAGS=" $(CFLAGS) -fPIC"
+ CFLAGS=" $(CFLAGS) -fPIC" CXXFLAGS="$(CXXFLAGS) -fPIC" \
+ FCFLAGS="$(FCFLAGS) -fPIC" FFLAGS="$(FFLAGS) -fPIC"
override_dh_auto_build:
$(MAKE) -C build-static
- #$(MAKE) -C build-shared
+ $(MAKE) -C build-shared
+ ( cd build-shared/src/lib && \
+ mpicxx -shared -o libpnetcdf.so.0d \
+ -Wl,--whole-archive libpnetcdf.a -Wl,--no-whole-archive -lgfortran )
override_dh_auto_install:
$(MAKE) -C build-static install DESTDIR=$(DESTDIR)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pnetcdf.git
More information about the debian-science-commits
mailing list