view sources/patches/uClibc++-norelpath.patch @ 1786:0787ceb820bf draft 1.4.2

When x86-64 switched on NPTL in uClibc, distcc broke, and it turns out fully native compiles under qemu never worked due to qemu not quite emulating floating point right and confusing the perl build with zero not comparing equal to zero. As long as it's broken anyway, switch it over to musl and fix it up on that side. It's no longer worth trying to fix anything broken in uClibc, the project is dead. (I'm aware of uClibc-ng, and am treating it exactly the same way I treated the ecommstation reboot of OS/2.)
author Rob Landley <rob@landley.net>
date Fri, 11 Sep 2015 13:25:14 -0500
parents db5d13f2474f
children
line wrap: on
line source

If /.config exists and is a directory (thanks Trolltech) the build dies because -include $(TOPDIR).config is not an absolute path so it falls back to the search path and finds /usr/include/../../.config
diff -ru uClibc++/extra/config/Makefile uClibc++.bak/extra/config/Makefile
--- uClibc++/extra/config/Makefile	2007-06-03 17:51:13.000000000 -0500
+++ uClibc++.bak/extra/config/Makefile	2012-08-17 12:37:25.571361853 -0500
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
-TOPDIR=../../
+TOPDIR=$(shell readlink -f ../..)/
 include $(TOPDIR)Rules.mak
 
 all: ncurses conf mconf