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

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

 



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


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux