aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2013-10-13 11:17:53 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2014-01-13 19:54:06 (GMT)
commit9c2f5d5fc043977b77cdd17b8240f9afeda2fc25 (patch)
tree41e8457f2bae5d5ec45ede5a2ce1e253ab37e824
parent00fdc27e2c2b825e2245a0063040ace6dc2a29aa (diff)
buildsystem: Do not specify library version for static libs
Signed-off-by: Gregor Jasny <gjasny@googlemail.com> (cherry picked from commit 06a05d0e6fb3630b17497d720271305660568fd5)
-rw-r--r--lib/libdvbv5/Makefile.am3
-rw-r--r--lib/libv4l1/Makefile.am3
-rw-r--r--lib/libv4l2/Makefile.am3
-rw-r--r--lib/libv4l2rds/Makefile.am3
-rw-r--r--lib/libv4lconvert/Makefile.am3
5 files changed, 10 insertions, 5 deletions
diff --git a/lib/libdvbv5/Makefile.am b/lib/libdvbv5/Makefile.am
index 2f75321..5de0e4e 100644
--- a/lib/libdvbv5/Makefile.am
+++ b/lib/libdvbv5/Makefile.am
@@ -4,6 +4,7 @@ include_HEADERS = ../include/dvb-demux.h ../include/dvb-v5-std.h \
../include/dvb-file.h ../include/dvb-frontend.h ../include/dvb-fe.h \
../include/dvb-sat.h ../include/dvb-scan.h
pkgconfig_DATA = libdvbv5.pc
+LIBDVBV5_VERSION = -version-info 0
else
noinst_LTLIBRARIES = libdvbv5.la
endif
@@ -42,7 +43,7 @@ libdvbv5_la_SOURCES = \
descriptors/eit.c ../include/descriptors/eit.h
libdvbv5_la_CPPFLAGS = $(ENFORCE_LIBDVBV5_STATIC)
-libdvbv5_la_LDFLAGS = -version-info 0 $(ENFORCE_LIBDVBV5_STATIC) -lm
+libdvbv5_la_LDFLAGS = $(LIBDVBV5_VERSION) $(ENFORCE_LIBDVBV5_STATIC) -lm
libdvbv5_la_LIBADD = $(LTLIBICONV)
EXTRA_DIST = README gen_dvb_structs.pl
diff --git a/lib/libv4l1/Makefile.am b/lib/libv4l1/Makefile.am
index e66e864..005ae10 100644
--- a/lib/libv4l1/Makefile.am
+++ b/lib/libv4l1/Makefile.am
@@ -2,6 +2,7 @@ if WITH_LIBV4L
lib_LTLIBRARIES = libv4l1.la
include_HEADERS = ../include/libv4l1.h ../include/libv4l1-videodev.h
pkgconfig_DATA = libv4l1.pc
+LIBV4L1_VERSION = -version-info 0
if WITH_V4L_WRAPPERS
libv4l1priv_LTLIBRARIES = v4l1compat.la
@@ -16,7 +17,7 @@ endif
libv4l1_la_SOURCES = libv4l1.c log.c libv4l1-priv.h
libv4l1_la_CPPFLAGS = $(CFLAG_VISIBILITY) $(ENFORCE_LIBV4L_STATIC)
-libv4l1_la_LDFLAGS = -version-info 0 -lpthread $(ENFORCE_LIBV4L_STATIC)
+libv4l1_la_LDFLAGS = $(LIBV4L1_VERSION) -lpthread $(ENFORCE_LIBV4L_STATIC)
libv4l1_la_LIBADD = ../libv4l2/libv4l2.la
v4l1compat_la_SOURCES = v4l1compat.c
diff --git a/lib/libv4l2/Makefile.am b/lib/libv4l2/Makefile.am
index 9266031..c60f89b 100644
--- a/lib/libv4l2/Makefile.am
+++ b/lib/libv4l2/Makefile.am
@@ -2,6 +2,7 @@ if WITH_LIBV4L
lib_LTLIBRARIES = libv4l2.la
include_HEADERS = ../include/libv4l2.h ../include/libv4l-plugin.h
pkgconfig_DATA = libv4l2.pc
+LIBV4L2_VERSION = -version-info 0
if WITH_V4L_WRAPPERS
libv4l2priv_LTLIBRARIES = v4l2convert.la
@@ -16,7 +17,7 @@ endif
libv4l2_la_SOURCES = libv4l2.c v4l2-plugin.c log.c libv4l2-priv.h
libv4l2_la_CPPFLAGS = $(CFLAG_VISIBILITY) $(ENFORCE_LIBV4L_STATIC)
-libv4l2_la_LDFLAGS = -version-info 0 -lpthread $(DLOPEN_LIBS) $(ENFORCE_LIBV4L_STATIC)
+libv4l2_la_LDFLAGS = $(LIBV4L2_VERSION) -lpthread $(DLOPEN_LIBS) $(ENFORCE_LIBV4L_STATIC)
libv4l2_la_LIBADD = ../libv4lconvert/libv4lconvert.la
v4l2convert_la_SOURCES = v4l2convert.c
diff --git a/lib/libv4l2rds/Makefile.am b/lib/libv4l2rds/Makefile.am
index fe6b86c..fc5bc35 100644
--- a/lib/libv4l2rds/Makefile.am
+++ b/lib/libv4l2rds/Makefile.am
@@ -2,10 +2,11 @@ if WITH_LIBV4L
lib_LTLIBRARIES = libv4l2rds.la
include_HEADERS = ../include/libv4l2rds.h
pkgconfig_DATA = libv4l2rds.pc
+LIBV4L2RDS_VERSION = -version-info 0
else
noinst_LTLIBRARIES = libv4l2rds.la
endif
libv4l2rds_la_SOURCES = libv4l2rds.c
libv4l2rds_la_CPPFLAGS = -fvisibility=hidden $(ENFORCE_LIBV4L_STATIC) -std=gnu99
-libv4l2rds_la_LDFLAGS = -version-info 0 -lpthread $(ENFORCE_LIBV4L_STATIC)
+libv4l2rds_la_LDFLAGS = $(LIBV4L2RDS_VERSION) -lpthread $(ENFORCE_LIBV4L_STATIC)
diff --git a/lib/libv4lconvert/Makefile.am b/lib/libv4lconvert/Makefile.am
index 50abef3..1bddfb9 100644
--- a/lib/libv4lconvert/Makefile.am
+++ b/lib/libv4lconvert/Makefile.am
@@ -3,6 +3,7 @@ lib_LTLIBRARIES = libv4lconvert.la
libv4lconvertpriv_PROGRAMS = ov511-decomp ov518-decomp
include_HEADERS = ../include/libv4lconvert.h
pkgconfig_DATA = libv4lconvert.pc
+LIBV4LCONVERT_VERSION = -version-info 0
else
noinst_LTLIBRARIES = libv4lconvert.la
endif
@@ -21,7 +22,7 @@ if HAVE_JPEG
libv4lconvert_la_SOURCES += jpeg_memsrcdest.c jpeg_memsrcdest.h
endif
libv4lconvert_la_CPPFLAGS = $(CFLAG_VISIBILITY) $(ENFORCE_LIBV4L_STATIC)
-libv4lconvert_la_LDFLAGS = -version-info 0 -lrt -lm $(JPEG_LIBS) $(ENFORCE_LIBV4L_STATIC)
+libv4lconvert_la_LDFLAGS = $(LIBV4LCONVERT_VERSION) -lrt -lm $(JPEG_LIBS) $(ENFORCE_LIBV4L_STATIC)
ov511_decomp_SOURCES = ov511-decomp.c

Privacy Policy