Skip to contentSkip to conversation

libcacard: fix compile error on glib2-2.12.3-4.el5

PATCH Superseded [email protected] 2 participants 2 messages Sep 27, 2014 – Sep 30, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libcacard: fix compile error on glib2-2.12.3-4.el5

From: Zhi Yong Wu <[email protected]>

lt LINK libcacard.la
CC libcacard/vscclient.o
lt LINK vscclient
/usr/bin/ld: -f may not be used without -shared
collect2: ld returned 1 exit status
make: *** [vscclient] Error 1

---
 libcacard/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
libcacard/Makefile +2 -1
index 0e7903f..40f7a28 100644
@@ -1,5 +1,6 @@
 libcacard_includedir=$(includedir)/cacard
-
+CFLAGS += -fPIC
+LDFLAGS += $(LDFLAGS_SHARED)
 TOOLS += vscclient$(EXESUF)
 
 # objects linked into a shared library, built with libtool with -fPIC if required
Signature · 1 line
1.5.5.6
#1 lore raw

Il 27/09/2014 03:13, [email protected] ha scritto:

Quoted 19 lines

From: Zhi Yong Wu <[email protected]>

lt LINK libcacard.la
CC libcacard/vscclient.o
lt LINK vscclient
/usr/bin/ld: -f may not be used without -shared
collect2: ld returned 1 exit status
make: *** [vscclient] Error 1

---
 libcacard/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
libcacard/Makefile +0 -0
index 0e7903f..40f7a28 100644

libcacard/Makefile line 4

Quoted 5 lines
libcacard/Makefile +2 -1
@@ -1,5 +1,6 @@
 libcacard_includedir=$(includedir)/cacard
-
+CFLAGS += -fPIC
+LDFLAGS += $(LDFLAGS_SHARED)
 TOOLS += vscclient$(EXESUF)

This is included into the main Makefile, so please do the change there.

Paolo

Quoted 2 lines
libcacard/Makefile +0 -0
 # objects linked into a shared library, built with libtool with -fPIC if required