proxy-libintl: Eliminate the compile rule in makefile
authorKhem Raj <raj.khem@gmail.com>
Sat, 24 Jul 2010 21:26:02 +0000 (14:26 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sun, 25 Jul 2010 14:48:44 +0000 (07:48 -0700)
* This rule is not needed because we do not pass correct
  CFLAGS so on architectures where PIC really matters it
  does not work. Therefore make is more consistent and let
  -shared decide what flag to use for PIC'ness

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/proxy-libintl/proxy-libintl-20080418/soname.patch
recipes/proxy-libintl/proxy-libintl_20080418.bb

index d2e8064..4e2c117 100644 (file)
@@ -1,13 +1,23 @@
-Index: proxy-libintl-20080418-r1/src/proxy-libintl/Makefile
+Index: proxy-libintl-20080418-r5/src/proxy-libintl/Makefile
 ===================================================================
---- proxy-libintl-20080418-r1.orig/src/proxy-libintl/Makefile
-+++ proxy-libintl-20080418-r1/src/proxy-libintl/Makefile
-@@ -7,7 +7,7 @@ CFLAGS = -Wall -I ../../include
+--- proxy-libintl-20080418-r5.orig/src/proxy-libintl/Makefile  2010-07-24 02:54:48.766605000 -0700
++++ proxy-libintl-20080418-r5/src/proxy-libintl/Makefile       2010-07-24 10:14:28.446605000 -0700
+@@ -6,16 +6,13 @@ CFLAGS = -Wall -I ../../include
  all : ../../lib/libintl.so ../../lib/intl.lib
  
- ../../lib/libintl.so : libintl.o
+-../../lib/libintl.so : libintl.o
 -      $(CC) -shared -o $@ libintl.o
-+      $(CC) -shared -Wl,-soname -Wl,libintl.so -o $@ libintl.o
++../../lib/libintl.so : libintl.c
++      $(CC) $(CFLAGS) -shared -Wl,-soname -Wl,libintl.so -o $@
  
  ../../lib/intl.lib : ../../lib/libintl.so
        cp ../../lib/libintl.so $@
+       $(STRIP) --strip-unneeded $@
+-libintl.o : libintl.c
+-      $(CC) $(CFLAGS) -c libintl.c
+-
+ clean :
+       rm -f *.o ../../lib/libintl.so ../../$(ZIPFILE)
index 0802365..68e9fce 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/"
 SECTION = "libs"
 LICENSE = "LGPL"
 
-PR = "r5"
+PR = "r6"
 PROVIDES = "virtual/libintl"
 
 SRC_URI = " \
@@ -19,9 +19,6 @@ FILES_${PN} = "${libdir}/libintl.so"
 
 CFLAGS_append = " -Wall -I ../../include ${@['-DSTUB_ONLY', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']}"
 TARGET_CC_ARCH += "${LDFLAGS}"
-CFLAGS_append_mips = " -fPIC"
-CFLAGS_append_mipsel = " -fPIC"
-CFLAGS_append_x86_64 = " -fPIC"
 
 do_compile() {
     cd ${WORKDIR}/src/proxy-libintl