summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2007-04-03 05:57:40 +0000
committerSteve Arnold <nerdboy@gentoo.org>2007-04-03 05:57:40 +0000
commit6d9522631d304b7ecd3e8c657d4ef4950ef4e532 (patch)
tree8b1940365f7d12d72166e3fbbdfaceba2c67386a /dev-util/duma/files/duma-2.4.27-make.patch
parentInclude proper headers and respect LDFLAGS. (diff)
downloadgentoo-2-6d9522631d304b7ecd3e8c657d4ef4950ef4e532.tar.gz
gentoo-2-6d9522631d304b7ecd3e8c657d4ef4950ef4e532.tar.bz2
gentoo-2-6d9522631d304b7ecd3e8c657d4ef4950ef4e532.zip
updated fork of electric fence (fixes bug 160695)
(Portage version: 2.1.2.2)
Diffstat (limited to 'dev-util/duma/files/duma-2.4.27-make.patch')
-rw-r--r--dev-util/duma/files/duma-2.4.27-make.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/duma/files/duma-2.4.27-make.patch b/dev-util/duma/files/duma-2.4.27-make.patch
new file mode 100644
index 000000000000..4fffab8f4303
--- /dev/null
+++ b/dev-util/duma/files/duma-2.4.27-make.patch
@@ -0,0 +1,51 @@
+diff -urN Makefile Makefile
+--- Makefile 2007-01-07 14:38:21.000000000 +0100
++++ Makefile 2007-01-07 14:38:39.000000000 +0100
+@@ -109,7 +109,7 @@
+ prefix=/usr
+ BIN_INSTALL_DIR= $(prefix)/bin
+ LIB_INSTALL_DIR= $(prefix)/lib
+-MAN_INSTALL_DIR= $(prefix)/man/man3
++MAN_INSTALL_DIR= $(prefix)/share/man/man3
+
+
+
+@@ -123,7 +123,9 @@
+
+ SO_OBJECTS = dumapp_so.o duma_so.o sem_inc_so.o print_so.o
+
+-all: libduma.a $(DUMASO) tstheap dumatest dumatestpp testoperators tstheap_so dumatestpp_so
++all: libduma.a $(DUMASO)
++
++check: tstheap dumatest dumatestpp testoperators tstheap_so dumatestpp_so
+ @ echo "Testing DUMA."
+ @ echo "After the last test, it should print that the test has PASSED."
+ $(CURPATH)dumatest
+@@ -134,13 +136,16 @@
+ @ echo "DUMA confidence test PASSED."
+
+ install: libduma.a duma.3 $(DUMASO)
++ ${INSTALL} -d ${BIN_INSTALL_DIR}
+ $(INSTALL) -m 755 duma.sh $(BIN_INSTALL_DIR)/duma
++ ${INSTALL} -d ${LIB_INSTALL_DIR}
+ $(INSTALL) -m 644 libduma.a $(LIB_INSTALL_DIR)
+ $(INSTALL) -m 755 $(DUMASO) $(LIB_INSTALL_DIR)
+ - rm -f $(LIB_INSTALL_DIR)/$(DUMASO_LINK1)
+ ln -s $(DUMASO) $(LIB_INSTALL_DIR)/$(DUMASO_LINK1)
+ - rm -f $(LIB_INSTALL_DIR)/$(DUMASO_LINK2)
+ ln -s $(DUMASO) $(LIB_INSTALL_DIR)/$(DUMASO_LINK2)
++ ${INSTALL} -d ${MAN_INSTALL_DIR}
+ $(INSTALL) -m 644 duma.3 $(MAN_INSTALL_DIR)/duma.3
+
+ clean:
+@@ -201,8 +206,8 @@
+ ifneq ($(OS), Windows_NT)
+
+ $(DUMASO): duma_config.h $(SO_OBJECTS)
+- $(CXX) -g -shared -Wl,-soname,$(DUMASO) -o $(DUMASO) $(SO_OBJECTS) -lpthread -lc
+- $(CXX) -g -shared -o $(DUMASO) $(SO_OBJECTS) -lpthread -lc
++ $(CXX) -g -shared -Wl,-soname,$(DUMASO) -o $(DUMASO) $(SO_OBJECTS) -lpthread
++# $(CXX) -g -shared -o $(DUMASO) $(SO_OBJECTS) -lpthread
+
+ endif
+