Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | after gcc linking has changed, all the libraries must be explicitely specified |
| 2 | This patch avoids this linking error: |
| 3 | |
| 4 | | ccache i586-poky-linux-gcc -march=i586 --sysroot=/disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o xtscal main.o calibrate.o -lX11 -lXft -lXext -lXcalibrate^M |
| 5 | | /disk0/pokybuild/build1/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.5.1/ld: ^?: invalid DSO for symbol `XRenderChangePicture' definition^M |
| 6 | | /disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux/usr/lib/libXrender.so.1: could not read symbols: Bad value^M |
| 7 | | collect2: ld returned 1 exit status^M |
| 8 | | make: *** [xtscal] Error 1 |
| 9 | |
| 10 | Nitin A Kamble <nitin.a.kamble@intel.com> |
| 11 | Date: 2011/01/11 |
| 12 | |
| 13 | Upstream-Status: Pending |
| 14 | |
| 15 | Index: xtscal-0.6.3/configure.ac |
| 16 | =================================================================== |
| 17 | --- xtscal-0.6.3.orig/configure.ac |
| 18 | +++ xtscal-0.6.3/configure.ac |
| 19 | @@ -9,7 +9,7 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
| 20 | # Checks for programs. |
| 21 | AC_PROG_CC |
| 22 | |
| 23 | -PKG_CHECK_MODULES(XTSCAL, x11 xft xext xcalibrate) |
| 24 | +PKG_CHECK_MODULES(XTSCAL, x11 xft xext xcalibrate xrender) |
| 25 | |
| 26 | AC_CONFIG_FILES([Makefile]) |
| 27 | AC_OUTPUT |