* wine is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
28 lines
881 B
Diff
28 lines
881 B
Diff
Build argp object files with -fPIC.
|
|
|
|
The argp bundled dependency is linked to the libwvutils.so shared library.
|
|
MIPS will refuce to link a non-PIC library with a shared one.
|
|
|
|
We fix this problem by building the argp source files using -fPIC since
|
|
the libargp static library will only be used to link to libwvutils.so
|
|
as instructed by the following rule in the root Makefile:
|
|
|
|
ifeq ($(USE_WVSTREAMS_ARGP),1)
|
|
utils/wvargs.o-CPPFLAGS += -Iargp
|
|
libwvutils.so-LIBS += -Largp -largp
|
|
|
|
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
|
|
|
|
Index: argp/Makefile.in
|
|
===================================================================
|
|
--- a/argp/Makefile.in.old
|
|
+++ b/argp/Makefile.in
|
|
@@ -137,7 +137,7 @@ AUTOMAKE = @AUTOMAKE@
|
|
AWK = @AWK@
|
|
CC = @CC@
|
|
CCDEPMODE = @CCDEPMODE@
|
|
-CFLAGS = @CFLAGS@
|
|
+CFLAGS = @CFLAGS@ -fPIC
|
|
CPP = @CPP@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|