File ctapi-cyberjack-2.0.10-libso.patch of Package pcsc-cyberjack
--- ctapi/Makefile
+++ ctapi/Makefile
@@ -22,7 +22,7 @@
$(CC) $(CFLAGS) -o $@ -c $^
libso: $(OBJS) $(LIBS)
- ld -x --shared -lusb -o libctapi-cyberjack.so $(OBJS) $(LIBS)
+ $(CC) -shared -o libctapi-cyberjack.so $(OBJS) $(LIBS) -lusb
liba: $(OBJS) $(LIBS)
mkdir tmp
--- ctapi/ausb/Makefile
+++ ctapi/ausb/Makefile
@@ -8,13 +8,13 @@
$(AR) r $@ $^
libausb.so: $(OBJS)
- $(LD) -x --shared -o $@ $^
+ $(CC) -shared -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^
ausb_test: ausb_test.o ausb.o
- $(CC) $(CFLAGS) -lusb -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^ -lusb
clean:
@rm -f *.o ausb_test libusb.a libausb.a libausb.so
--- ctapi/ecom/Makefile
+++ ctapi/ecom/Makefile
@@ -14,7 +14,7 @@
$(CC) $(CFLAGS) -o $@ -c $^
libso: $(OBJS)
- ld -x --shared -o libctapi-ecom.so $(OBJS)
+ $(CC) -shared -o libctapi-ecom.so $(OBJS)
libctapi-ecom.a: $(OBJS)
ar r $@ $(OBJS)
--- ctapi/ppa/Makefile
+++ ctapi/ppa/Makefile
@@ -18,14 +18,14 @@
$(CC) $(CFLAGS) -o $@ -c $<
libctapi-ppa.so: $(OBJS)
- ld -x --shared -o $@ $^
+ $(CC) -shared -o $@ $^
libctapi-ppa.a: $(OBJS)
ar r $@ $^
if test -s /bin/ranlib; then /bin/ranlib $@; else if test -s /usr/bin/ranlib; then /usr/bin/ranlib $@; else exit 0; fi; fi
ctapi_test: ctapi_test.o libctapi-cyberjack.a
- $(CC) -lusb -o $@ $^
+ $(CC) -o $@ $^ -lusb
clean:
rm -f $(OBJS) libctapi-ppa.a libctapi-ppa.so
--- pcsc/Makefile
+++ pcsc/Makefile
@@ -24,7 +24,7 @@
install -o root -g root $(PLUGDIR)/PkgInfo $(INSTALL_PREFIX)/lib/pcsc/drivers/$(PLUGDIR)/PkgInfo
libso: $(OBJS)
- ld -x --shared -lusb -o $(PLUGDIR)/Linux/ifd-cyberjack.so $(OBJS)
+ $(CC) -shared -o $(PLUGDIR)/Linux/ifd-cyberjack.so $(OBJS) -lusb
liba: $(OBJS)
ar r libcyberjack_ifd.a $(OBJS) $(CTOBJS)