diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-05-07 15:00:30 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-05-07 15:00:30 +0000 |
| commit | 44152596bab3f875057f48dbc238603aaae4df1d (patch) | |
| tree | 0a03293c5e118d54613115e4735c1d830898d030 /meta/packages/jpeg/jpeg-6b/libtool_tweak.patch | |
| parent | 1b969af1b947a0c216cf17bba73fe7d07c411c98 (diff) | |
| download | poky-44152596bab3f875057f48dbc238603aaae4df1d.tar.gz | |
jpeg: Rip out debian libtool hacks and use libtool-cross from staging. Also set tag mode to avoid issues with modern libtool
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4451 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/jpeg/jpeg-6b/libtool_tweak.patch')
| -rw-r--r-- | meta/packages/jpeg/jpeg-6b/libtool_tweak.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/packages/jpeg/jpeg-6b/libtool_tweak.patch b/meta/packages/jpeg/jpeg-6b/libtool_tweak.patch new file mode 100644 index 0000000000..d61476adc0 --- /dev/null +++ b/meta/packages/jpeg/jpeg-6b/libtool_tweak.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | Index: jpeg-6b/configure | ||
| 2 | =================================================================== | ||
| 3 | --- jpeg-6b.orig/configure 2008-05-07 15:53:15.000000000 +0100 | ||
| 4 | +++ jpeg-6b/configure 2008-05-07 15:54:40.000000000 +0100 | ||
| 5 | @@ -1532,7 +1532,7 @@ | ||
| 6 | LIBTOOL="./libtool" | ||
| 7 | O="lo" | ||
| 8 | A="la" | ||
| 9 | - LN='$(LIBTOOL) --mode=link $(CC)' | ||
| 10 | + LN='$(LIBTOOL) --tag=CC --mode=link $(CC)' | ||
| 11 | INSTALL_LIB='$(LIBTOOL) --mode=install ${INSTALL}' | ||
| 12 | INSTALL_PROGRAM="\$(LIBTOOL) --mode=install $INSTALL_PROGRAM" | ||
| 13 | else | ||
| 14 | @@ -1559,7 +1559,6 @@ | ||
| 15 | if test "x$LTSTATIC" = xno; then | ||
| 16 | disable_static="--disable-static" | ||
| 17 | fi | ||
| 18 | - $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh | ||
| 19 | fi | ||
| 20 | |||
| 21 | # Select memory manager depending on user input. | ||
| 22 | Index: jpeg-6b/makefile.cfg | ||
| 23 | =================================================================== | ||
| 24 | --- jpeg-6b.orig/makefile.cfg 2008-05-07 15:53:24.000000000 +0100 | ||
| 25 | +++ jpeg-6b/makefile.cfg 2008-05-07 15:56:22.000000000 +0100 | ||
| 26 | @@ -141,7 +141,7 @@ | ||
| 27 | |||
| 28 | # How to compile with libtool. | ||
| 29 | @COM_LT@.c.lo: | ||
| 30 | -@COM_LT@ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $(srcdir)/$*.c | ||
| 31 | +@COM_LT@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) -c $(srcdir)/$*.c | ||
| 32 | |||
| 33 | # How to use ansi2knr, when not using libtool. | ||
| 34 | @COM_A2K@.c.o: | ||
| 35 | @@ -152,7 +152,7 @@ | ||
| 36 | # How to use ansi2knr AND libtool. | ||
| 37 | @COM_A2K@.c.lo: | ||
| 38 | @COM_A2K@ ./ansi2knr $(srcdir)/$*.c knr/$*.c | ||
| 39 | -@COM_A2K@ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c knr/$*.c | ||
| 40 | +@COM_A2K@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) -c knr/$*.c | ||
| 41 | @COM_A2K@ $(RM) knr/$*.c | ||
| 42 | |||
| 43 | ansi2knr: ansi2knr.c | ||
| 44 | @@ -169,7 +169,7 @@ | ||
| 45 | |||
| 46 | # with libtool: | ||
| 47 | libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS) | ||
| 48 | - $(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \ | ||
| 49 | + $(LIBTOOL) --tag=CC --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \ | ||
| 50 | -rpath $(libdir) -version-info $(JPEG_LIB_VERSION) $(LDFLAGS) | ||
| 51 | |||
| 52 | # sample programs: | ||
