summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/newt/files/pie-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/newt/files/pie-flags.patch')
-rw-r--r--meta/recipes-extended/newt/files/pie-flags.patch27
1 files changed, 16 insertions, 11 deletions
diff --git a/meta/recipes-extended/newt/files/pie-flags.patch b/meta/recipes-extended/newt/files/pie-flags.patch
index 8883e26adf..92f5b2503b 100644
--- a/meta/recipes-extended/newt/files/pie-flags.patch
+++ b/meta/recipes-extended/newt/files/pie-flags.patch
@@ -1,7 +1,4 @@
1specify -fPIC after CFLAGS so it can override the CFLAGS containing -pie and -fpie 1specify -fPIC after CFLAGS so it can override the CFLAGS containing -pie and -fpie this makes sure the objects that go into shared objects are compiled with -fPIC and not with -fpie. We can not use -fpie on objects which will go into .so files Fixes errors like
2this makes sure the objects that go into shared objects are compiled with -fPIC
3and not with -fpie. We can not use -fpie on objects which will go into .so files
4Fixes errors like
5 2
6| /mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld: shared/newt.o: relocation R_X86_64_PC32 against undefined symbol `SLtt_Screen_Rows@@SLANG2' can not be used when making a shared object; recompile with -fPIC 3| /mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld: shared/newt.o: relocation R_X86_64_PC32 against undefined symbol `SLtt_Screen_Rows@@SLANG2' can not be used when making a shared object; recompile with -fPIC
7| /mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld: final link failed: Bad value 4| /mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld: final link failed: Bad value
@@ -10,10 +7,15 @@ Fixes errors like
10 7
11Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
12Upstream-Status: Pending 9Upstream-Status: Pending
13Index: newt-0.52.18/Makefile.in 10
14=================================================================== 11---
15--- newt-0.52.18.orig/Makefile.in 12 Makefile.in | 6 +++---
16+++ newt-0.52.18/Makefile.in 13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15diff --git a/Makefile.in b/Makefile.in
16index be5f87b..88ee0b7 100644
17--- a/Makefile.in
18+++ b/Makefile.in
17@@ -96,8 +96,8 @@ _snack.$(SOEXT): snack.c $(LIBNEWTSH) 19@@ -96,8 +96,8 @@ _snack.$(SOEXT): snack.c $(LIBNEWTSH)
18 PIFLAGS=`$$pyconfig --includes`; \ 20 PIFLAGS=`$$pyconfig --includes`; \
19 PLDFLAGS=`$$pyconfig --ldflags`; \ 21 PLDFLAGS=`$$pyconfig --ldflags`; \
@@ -25,12 +27,15 @@ Index: newt-0.52.18/Makefile.in
25 echo $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snack.$(SOEXT) $$ver/snack.o -L. -lnewt $(LIBS); \ 27 echo $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snack.$(SOEXT) $$ver/snack.o -L. -lnewt $(LIBS); \
26 $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snack.$(SOEXT) $$ver/snack.o -L. -lnewt $(LIBS); \ 28 $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snack.$(SOEXT) $$ver/snack.o -L. -lnewt $(LIBS); \
27 done || : 29 done || :
28@@ -135,7 +135,7 @@ $(LIBNEWTSH): $(SHAREDOBJS) 30@@ -133,7 +133,7 @@ $(LIBNEWTSH): $(SHAREDOBJS)
29 ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME)
30 31
31 $(SHAREDDIR)/%.o : %.c $(SHAREDDIR) 32 $(SHAREDDIR)/%.o : %.c
33 @mkdir -p $(SHAREDDIR)
32- $(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< 34- $(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
33+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $(SHCFLAGS) -o $@ $< 35+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $(SHCFLAGS) -o $@ $<
34 36
35 install: $(LIBNEWT) install-sh whiptail 37 install: $(LIBNEWT) install-sh whiptail
36 [ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir) 38 [ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir)
39--
402.7.4
41