Skip to content

Commit 5b939df

Browse files
author
Herbert KOELMAN
committed
Merge branch 'develop' of mut-mut-scmv1.dev.parimutuel.local:p094212/cpp-pthread into develop
2 parents 04f8cd2 + ec2e00a commit 5b939df

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CCC=@CXX@
1818
CXX=$CCC
1919
RANLIB=@RANLIB@
2020
RM=rm -f
21-
AR=@AR@
21+
AR=@AR@ @ARFLAGS@
2222
MV=@MV@
2323

2424
BITS=@BITS@

src/configure

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ ac_includes_default="\
624624

625625
ac_subst_vars='LTLIBOBJS
626626
LIBOBJS
627+
ARFLAGS
627628
OBJECTS
628629
BITS
629630
EGREP
@@ -3843,13 +3844,17 @@ case "$CXX" in
38433844
CPPFLAGS="-qlanglvl=extended0x:decltype:static_assert:rvaluereferences -qsourcetype=c++ $CPPFLAGS"
38443845
CFLAGS="-bh:5 -qmaxmem=-1 -q$BITS $CFLAGS"
38453846
CXXFLAGS="-O"
3847+
ARFLAGS="-X$bits"
3848+
38463849
LDFLAGS="$LDFLAGS -brtl -bmaxdata:0x80000000"
38473850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using large memory model (maxdata:0x80000000), optimising level 2 (-O),using run-time link method (-brtl)" >&5
38483851
$as_echo "using large memory model (maxdata:0x80000000), optimising level 2 (-O),using run-time link method (-brtl)" >&6; }
38493852
;;
38503853
g++ | gcc)
38513854
CPPFLAGS="-x c++ -std=c++11 -frtti $CPPFLAGS"
38523855
CXXFLAGS="-O2"
3856+
ARFLAGS=""
3857+
38533858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38543859
$as_echo "yes" >&6; }
38553860
;;

src/configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ case "$CXX" in
4343
CPPFLAGS="-qlanglvl=extended0x:decltype:static_assert:rvaluereferences -qsourcetype=c++ $CPPFLAGS"
4444
CFLAGS="-bh:5 -qmaxmem=-1 -q$BITS $CFLAGS"
4545
CXXFLAGS="-O"
46+
AC_SUBST(ARFLAGS,"-X$bits")
4647
LDFLAGS="$LDFLAGS -brtl -bmaxdata:0x80000000"
4748
AC_MSG_RESULT([using large memory model (maxdata:0x80000000), optimising level 2 (-O),using run-time link method (-brtl)])
4849
;;
4950
g++ | gcc)
5051
CPPFLAGS="-x c++ -std=c++11 -frtti $CPPFLAGS"
5152
CXXFLAGS="-O2"
53+
AC_SUBST(ARFLAGS,"")
5254
AC_MSG_RESULT([yes])
5355
;;
5456
*)

0 commit comments

Comments
 (0)