From b2da72f2d499798a05a1083ac61c911db5798514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 13 Jun 2013 09:13:15 +0000 Subject: [PATCH] add CPPFLAGS=-std=c++0x for debian and rpm package builds ; refs #26 --- debian/rules | 2 +- libpcscxx.spec.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index b49eead..de7ce33 100755 --- a/debian/rules +++ b/debian/rules @@ -40,7 +40,7 @@ endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif - CPPFLAGS=-DALLOW_SSL_0_8 ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" + "CPPFLAGS=-DALLOW_SSL_0_8 -std=c++0x" ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" # does not work: LDFLAGS="-Wl,-z,defs" diff --git a/libpcscxx.spec.in b/libpcscxx.spec.in index 44fc16a..3e9c5bf 100644 --- a/libpcscxx.spec.in +++ b/libpcscxx.spec.in @@ -22,7 +22,8 @@ This package contains only the shared libraries required at runtime. %prep %setup -q -./configure --prefix=/usr \ +CPPFLAGS=-std=c++0x \ + ./configure --prefix=/usr \ --docdir=/usr/share/doc/packages/@PACKAGENAME@ \ --libdir=/usr/%_lib