packages/jpeg/jpeg_6b.bb: Add patch that allows libjpeg to compile using libtool...
authorStelios Koroneos <skoroneos@digital-opsis.com>
Wed, 14 Mar 2007 19:16:03 +0000 (19:16 +0000)
committerStelios Koroneos <skoroneos@digital-opsis.com>
Wed, 14 Mar 2007 19:16:03 +0000 (19:16 +0000)
packages/jpeg/jpeg-6b/libtool.patch [new file with mode: 0644]
packages/jpeg/jpeg_6b.bb

diff --git a/packages/jpeg/jpeg-6b/libtool.patch b/packages/jpeg/jpeg-6b/libtool.patch
new file mode 100644 (file)
index 0000000..c7fd858
--- /dev/null
@@ -0,0 +1,49 @@
+--- /orig-makefile.cfg 2007-03-13 18:09:05.000000000 +0200
++++ /makefile.cfg      2007-03-13 21:42:33.000000000 +0200
+@@ -36,8 +36,10 @@
+ # To link any special libraries, add the necessary -l commands here.
+ LDLIBS= @LIBS@
++
+ # If using GNU libtool, LIBTOOL references it; if not, LIBTOOL is empty.
+ LIBTOOL = @LIBTOOL@
++
+ # $(O) expands to "lo" if using libtool, plain "o" if not.
+ # Similarly, $(A) expands to "la" or "a".
+ O = @O@
+@@ -55,7 +57,7 @@
+ # miscellaneous OS-dependent stuff
+ SHELL= /bin/sh
+ # linker
+-LN= @LN@
++LN= $(LIBTOOL) --tag=CC --mode=link  $(CC)        
+ # file deletion command
+ RM= rm -f
+ # directory creation command
+@@ -141,7 +143,7 @@
+ # How to compile with libtool.
+ @COM_LT@.c.lo:
+-@COM_LT@      $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $(srcdir)/$*.c
++@COM_LT@      $(LIBTOOL) --tag=CC --mode=compile  $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+ # How to use ansi2knr, when not using libtool.
+ @COM_A2K@.c.o:
+@@ -152,7 +154,7 @@
+ # How to use ansi2knr AND libtool.
+ @COM_A2K@.c.lo:
+ @COM_A2K@     ./ansi2knr $(srcdir)/$*.c knr/$*.c
+-@COM_A2K@     $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c knr/$*.c
++@COM_A2K@     $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c knr/$*.c
+ @COM_A2K@     $(RM) knr/$*.c
+ ansi2knr: ansi2knr.c
+@@ -169,7 +171,7 @@
+ # with libtool:
+ libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS)
+-      $(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \
++      $(LIBTOOL) --tag=CC --mode=link  $(CC) -o libjpeg.la $(LIBOBJECTS) \
+               -rpath $(libdir) -version-info $(JPEG_LIB_VERSION) $(LDFLAGS)
+ # sample programs:
index 8573789..c93aadb 100644 (file)
@@ -7,12 +7,15 @@ DEPENDS = "libtool-cross"
 RPROVIDES_${PN} = "jpeg"
 
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
           file://debian.patch;patch=1 \
           file://ldflags.patch;patch=1 \
-          file://paths.patch;patch=1"
+          file://paths.patch;patch=1 \
+           file://libtool.patch;patch=1 \
+           "
+
 S = "${WORKDIR}/jpeg-${PV}"
 
 inherit autotools
@@ -20,7 +23,7 @@ inherit autotools
 EXTRA_OECONF="--enable-static --enable-shared"
 EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool"'
 
-CFLAGS_append = " -D_REENTRANT"
+CFLAGS_append = " -D_REENTRANT" 
 
 do_stage() {
        install -m 644 jconfig.h ${STAGING_INCDIR}/jconfig.h