From d845f920ec1f5cd6ef5a95366383e74725912441 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Feb 2013 08:44:41 +0200 Subject: Add Mac OS X ODB binary build scripts --- binary/darwin/odb-configure | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 binary/darwin/odb-configure (limited to 'binary/darwin/odb-configure') diff --git a/binary/darwin/odb-configure b/binary/darwin/odb-configure new file mode 100755 index 0000000..b199f2f --- /dev/null +++ b/binary/darwin/odb-configure @@ -0,0 +1,23 @@ +#! /bin/sh + +if test "$1" = "d"; then + libcxx=`g++ --print-file-name libstdc++.a` + libgcc=`g++ --print-file-name libgcc.a` + libgcc_eh=`g++ --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" CXXFLAGS=-O2 LIBS="$libs" \ +CPPFLAGS="-I`/$2/bin/g++ --print-file-name plugin`/include" -- cgit v1.1