[Linux-cluster] [PATCH] dlm: Never link with ld -- Don't install headers executable
Bastian Blank
bastian at waldi.eu.org
Mon Feb 7 10:09:49 UTC 2005
The following patch fixes two bugs in dlm.
- ld is used for linking which regulary fails.
- Headers are installed executable.
Bastian
--
Those who hate and fight must stop themselves -- otherwise it is not stopped.
-- Spock, "Day of the Dove", stardate unknown
-------------- next part --------------
--- dlm/lib/Makefile 2005-02-06 18:53:03.000000000 +0100
+++ dlm/lib/Makefile 2005-02-06 19:28:17.000000000 +0100
@@ -46,7 +46,7 @@
${RANLIB} libdlm_lt.a
$(LIBNAME).so.${RELEASE_MAJOR}.${RELEASE_MINOR}: libdlm.po libaislock.po
- $(LD) -shared -o $@ -soname=$(LIBNAME).so.$(RELEASE_MAJOR) $^
+ $(CC) -shared -o $@ -Wl,-soname=$(LIBNAME).so.$(RELEASE_MAJOR) $^
$(LIBNAME)_lt.so.${RELEASE_MAJOR}.${RELEASE_MINOR}: libdlm_lt.po
$(CC) -shared -o $@ -Wl,-soname=$(LIBNAME)_lt.so.$(RELEASE_MAJOR) $^
@@ -74,7 +74,7 @@
install: all
install -d ${incdir}
- install libdlm.h ${incdir}
+ install -m644 libdlm.h ${incdir}
install -d ${libdir}
install $(LIBNAME).a ${libdir}
install $(LIBNAME)_lt.a ${libdir}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20050207/ae7ad323/attachment.sig>
More information about the Linux-cluster
mailing list