dlm: master - build: fix build error with gcc 4.7

Fabio M. Di Nitto fabbione at fedoraproject.org
Mon Jan 9 10:19:12 UTC 2012


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ead0d1031e46279775333b2f988f0722877a0687
Commit:        ead0d1031e46279775333b2f988f0722877a0687
Parent:        02850b642b64ec70c1bdbb411eb653624c135384
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Mon Jan 9 11:15:34 2012 +0100
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Mon Jan 9 11:15:34 2012 +0100

build: fix build error with gcc 4.7

drop unused LDFLAGS += -Wl

-Wl is used to pass options to the linker and as of gcc 4.7 it expects
the options to be there or call to the linker will fail.

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 libdlm/Makefile |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libdlm/Makefile b/libdlm/Makefile
index bcb1b6a..185d9c2 100644
--- a/libdlm/Makefile
+++ b/libdlm/Makefile
@@ -80,8 +80,6 @@ CFLAGS += -D_GNU_SOURCE -g \
 LIB_CFLAGS += $(CFLAGS) -D_REENTRANT
 LLT_CFLAGS += $(CFLAGS)
 
-LDFLAGS += -Wl
-
 LIB_LDFLAGS += $(LDFLAGS) -lpthread
 LLT_LDFLAGS += $(LDFLAGS)
 


More information about the cluster-commits mailing list