diff options
Diffstat (limited to 'main/libpri/libpri-cflags.patch')
-rw-r--r-- | main/libpri/libpri-cflags.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/libpri/libpri-cflags.patch b/main/libpri/libpri-cflags.patch new file mode 100644 index 000000000..7bf31c7ac --- /dev/null +++ b/main/libpri/libpri-cflags.patch @@ -0,0 +1,21 @@ +Index: Makefile +=================================================================== +--- a/Makefile (revision 650) ++++ b/Makefile (working copy) +@@ -43,7 +43,7 @@ + DYNAMIC_LIBRARY:=libpri.so.$(SONAME) + STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o version.o + DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo version.lo +-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS) ++CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS) + INSTALL_PREFIX=$(DESTDIR) + INSTALL_BASE=/usr + libdir?=$(INSTALL_BASE)/lib +@@ -102,7 +102,6 @@ + ifneq (${OSARCH},SunOS) + install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include + install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(libdir) +- if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then /sbin/restorecon -v $(INSTALL_PREFIX)$(libdir)/$(DYNAMIC_LIBRARY); fi + ( cd $(INSTALL_PREFIX)$(libdir) ; ln -sf libpri.so.$(SONAME) libpri.so) + install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(libdir) + if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(INSTALL_PREFIX)$(libdir); fi |