freetype: fix to add --tag=CC to libtool commands
authorMichael Krelin <hacker@klever.net>
Fri, 22 Aug 2008 18:21:21 +0000 (18:21 +0000)
committerMichael Krelin <hacker@klever.net>
Fri, 22 Aug 2008 18:21:21 +0000 (18:21 +0000)
Thanks to Hans-Christoph Steiner of oe bug #4504

packages/freetype/freetype-2.3.6/libtool-tag.patch [new file with mode: 0644]
packages/freetype/freetype_2.3.6.bb

diff --git a/packages/freetype/freetype-2.3.6/libtool-tag.patch b/packages/freetype/freetype-2.3.6/libtool-tag.patch
new file mode 100644 (file)
index 0000000..2f096cd
--- /dev/null
@@ -0,0 +1,20 @@
+--- freetype-2.3.6/builds/unix/unix-cc.in      
++++ freetype-2.3.6/builds/unix/unix-cc.in      
+@@ -88,7 +88,7 @@ 
+ #
+ #
+ CCraw := $(CC)
+-CC    := $(LIBTOOL) --mode=compile $(CCraw)
++CC    := $(LIBTOOL) --tag=CC --mode=compile $(CCraw)
+ # Linker flags.
+ #
+@@ -105,7 +105,7 @@ 
+ # Library linking
+ #
+-LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
++LINK_LIBRARY = $(LIBTOOL) --tag=CC --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
+                           -rpath $(libdir) -version-info $(version_info) \
+                           $(LDFLAGS) -no-undefined \
+                           # -export-symbols $(EXPORTS_LIST)
index 516354a..eca74c0 100644 (file)
@@ -7,6 +7,7 @@ SRC_URI = "\
   ${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \
   file://no-hardcode.patch;patch=1 \
   file://fix-configure.patch;patch=1 \
+  file://libtool-tag.patch;patch=1 \
 "
 S = "${WORKDIR}/freetype-${PV}"