[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Linux-cluster] [PATCH] dlm: Never link with ld -- Don't install headers executable



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
--- 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}

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]