summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-03-07 18:30:51 +0000
committerJustin Lecher <jlec@gentoo.org>2010-03-07 18:30:51 +0000
commit4600c0620b94bb222420768da33449f770f5f7df (patch)
tree301aee44e0746a86874712bfa15232df48291746 /dev-libs/cvector/files
parentfix typo wrt #308347 (diff)
downloadgentoo-2-4600c0620b94bb222420768da33449f770f5f7df.tar.gz
gentoo-2-4600c0620b94bb222420768da33449f770f5f7df.tar.bz2
gentoo-2-4600c0620b94bb222420768da33449f770f5f7df.zip
building shared libs now
(Portage version: 2.2_rc65/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/cvector/files')
-rw-r--r--dev-libs/cvector/files/1.0.3-dynlib.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/cvector/files/1.0.3-dynlib.patch b/dev-libs/cvector/files/1.0.3-dynlib.patch
new file mode 100644
index 000000000000..890935161182
--- /dev/null
+++ b/dev-libs/cvector/files/1.0.3-dynlib.patch
@@ -0,0 +1,36 @@
+diff --git a/Makefile b/Makefile
+index 865db81..227376c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -96,8 +96,8 @@ BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -static -I $(IN
+ INSTALL_COMMAND = $(LIBTOOL) --mode=install cp
+ INSTALL_FINISH_COMMAND = $(LIBTOOL) --mode=finish
+
+-OBJ_EXT = lo
+-LIB_EXT = la
++OBJ_EXT = o
++LIB_EXT = so
+
+ ######################################################################
+ # You should not need to make modifications below this line #
+@@ -181,8 +181,7 @@ default:
+ # Compile the library and examples
+ #
+ all: $(LIB) $(BIN) $(SOURCE) $(HEADERS) \
+- $(LIB)/libCVector.$(LIB_EXT) \
+- $(BIN)/CVectorBasicTest
++ $(LIB)/libCVector.$(LIB_EXT)
+
+ install: all $(INSTALL_PREFIX) $(INSTALL_PREFIX)/lib $(INSTALL_PREFIX)/include \
+ $(INC) $(LIB)/libCVector.$(LIB_EXT) $(INC)/CVector.h
+@@ -232,8 +231,8 @@ $(BIN):
+ # CVector library
+ #
+ $(LIB)/libCVector.$(LIB_EXT): $(SOURCE) $(HEADERS) $(COMMONDEP)
+- $(COMPILE_COMMAND) -c $(SOURCE)
+- $(LIBRARY_LINK_COMMAND) -o $(LIB)/libCVector.$(LIB_EXT) *.$(OBJ_EXT)
++ $(CC) $(CFLAGS) -fPIC -c $(SOURCE) -o CVector.o
++ $(CC) $(LDFLAGS) -Wl,--soname,libCVector.so.1 -shared -o libCVector.so.$(RELEASE) *.$(OBJ_EXT) -lm
+
+ #
+ # CVectorBasicTest example program