From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Thu, 19 Jul 2018 11:45:24 +0200 Subject: [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng In-Reply-To: <20180610181104.19619-1-fontaine.fabrice@gmail.com> (Fabrice Fontaine's message of "Sun, 10 Jun 2018 20:11:04 +0200") References: <20180610181104.19619-1-fontaine.fabrice@gmail.com> Message-ID: <87zhynftjf.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Fabrice" == Fabrice Fontaine writes: > Fixes following linking error with uClibc-ng: > /home/peko/autobuild/instance-0/output/host/lib/gcc/powerpc-buildroot-linux-uclibc/7.3.0/libgcc.a(unwind-dw2-fde-dip.o): > In function `_Unwind_Find_FDE': > /home/peko/autobuild/instance-0/output/build/host-gcc-final-7.3.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469: > undefined reference to `dl_iterate_phdr' > collect2: error: ld returned 1 exit status > Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc > exist, when static linking is used. It can be resolved by the compiler > when -static is correctly passed in the linking step. > So use TARGET_CONFIGURE_OPTS to pass CC as well as LDFLAGS to make > Fixes: > - http://autobuild.buildroot.net/results/d9f0311538c8db1196839e36af3f6ef4e403be2b > Signed-off-by: Fabrice Fontaine > --- > Changes v1 -> v2 (after review of Thomas Petazzoni): > - Remove PIXIEWPS_MAKE_OPTS to use directly TARGET_CONFIGURE_OPTS Committed to 2018.05.x, thanks. -- Bye, Peter Korsgaard