Browse Source

gettext-tiny: always use -fPIC for shared library usage

Waldemar Brodkorb 7 years ago
parent
commit
c125ac6310
1 changed files with 6 additions and 5 deletions
  1. 6 5
      package/gettext-tiny/patches/patch-Makefile

+ 6 - 5
package/gettext-tiny/patches/patch-Makefile

@@ -1,21 +1,22 @@
---- gettext-tiny-0.0.3.orig/Makefile	2013-06-30 06:48:42.000000000 +0200
-+++ gettext-tiny-0.0.3/Makefile	2013-10-30 22:13:29.000000000 +0100
+--- gettext-tiny-0.0.4.orig/Makefile	2014-03-02 15:55:44.000000000 +0100
++++ gettext-tiny-0.0.4/Makefile	2016-07-17 01:00:02.732966962 +0200
 @@ -1,4 +1,4 @@
 -prefix=/usr/local
 +prefix=/usr
  bindir=$(prefix)/bin
  includedir=$(prefix)/include
  libdir=$(prefix)/lib
-@@ -19,7 +19,7 @@ ALL_INCLUDES = $(HEADERS)
+@@ -19,7 +19,8 @@ ALL_INCLUDES = $(HEADERS)
  ALL_LIBS=libintl.a
  ALL_TOOLS=msgfmt msgmerge xgettext
  
 -CFLAGS=-O0 -fPIC
-+CFLAGS?=-O0 -fPIC
++CFLAGS?=-O0
++CFLAGS+=-fPIC
  
  AR      ?= $(CROSS_COMPILE)ar
  RANLIB  ?= $(CROSS_COMPILE)ranlib
-@@ -47,22 +47,25 @@ libintl.a: $(LIBOBJS)
+@@ -47,22 +48,25 @@ libintl.a: $(LIBOBJS)
  	$(RANLIB) $@
  
  msgmerge: $(OBJS)