Revision: 642
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=642&view=rev
Author: mithro
Date: 2008-07-15 05:54:12 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
Use the gcc version we built with in the library name.
Modified Paths:
--------------
trunk/python-ogre/boost/debian/rules
Modified: trunk/python-ogre/boost/debian/rules
===================================================================
--- trunk/python-ogre/boost/debian/rules 2008-07-15 12:36:29 UTC (rev 641)
+++ trunk/python-ogre/boost/debian/rules 2008-07-15 12:54:12 UTC (rev 642)
@@ -8,10 +8,8 @@
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
+export GCC_VERSION=`gcc --version | head -1 | sed -e's/.*) \([0-9]\)\.\([0-9]\).*/\1\2/'`
-
-
-
# shared library versions, option 1
#version=2.0.5
#major=2
@@ -33,13 +31,14 @@
build-stamp: configure-stamp
dh_testdir
+
# Add here commands to compile the package.
g++ \
./libs/python/src/indexing/indexing_slice.cpp \
./libs/python/src/indexing/python_iterator.cpp \
-I . \
-I /usr/include/python2.5 \
- -shared -Wl,-soname,libboost_python_index-gcc42-1_34_1.so -o libboost_python_index-gcc42-1_34_1.so -fPIC \
+ -shared -Wl,-soname,libboost_python_index-gcc${GCC_VERSION}-1_34_1.so -o libboost_python_index-gcc${GCC_VERSION}-1_34_1.so -fPIC \
-lboost_python \
-lpython2.5
@@ -63,8 +62,8 @@
# Add here commands to install the package into debian/tmp
mkdir -p $(CURDIR)/debian/tmp/usr/lib
- cp libboost_python_index-gcc42-1_34_1.so $(CURDIR)/debian/tmp/usr/lib
- ln -sf /usr/lib/libboost_python_index-gcc42-1_34_1.so $(CURDIR)/debian/tmp/usr/lib/libboost_python_index.so
+ cp libboost_python_index-gcc${GCC_VERSION}-1_34_1.so $(CURDIR)/debian/tmp/usr/lib
+ ln -sf /usr/lib/libboost_python_index-gcc${GCC_VERSION}-1_34_1.so $(CURDIR)/debian/tmp/usr/lib/libboost_python_index.so
mkdir -p $(CURDIR)/debian/tmp/usr/include
cp -rvf boost $(CURDIR)/debian/tmp/usr/include
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|