blob: 0e8af7c109e44cd75865ed7b58627b169ea86b52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /bin/sh
if test "$1" = "d"; then
libcxx=`g++ -m64 --print-file-name libstdc++.a`
libgcc=`g++ -m64 --print-file-name libgcc.a`
libgcc_eh=`g++ -m64 --print-file-name libgcc_eh.a`
cxx="g++ -nodefaultlibs"
libs="$libcxx $libgcc $libgcc_eh -lSystem"
else
cxx="g++"
libs=
fi
../odb/configure \
--with-libcutl=../libcutl \
--disable-rpath \
--with-gxx-name=../lib/odb/$2/bin/g++ \
--with-options-file=../etc/odb/default.options \
--prefix=$3 \
--libexecdir=$3/lib \
CXX="$cxx" LIBS="$libs" CXXFLAGS="-m64 -O2 -fno-devirtualize"
|