Changeset 29799


Ignore:
Timestamp:
2012-01-19T14:14:07+01:00 (6 years ago)
Author:
jow
Message:

[packages] re: infer SYSROOT from the cross cpp's idea of pthread.h location
Until now, SYSROOT was always assumed to be $(TOOLCHAIN_DIR), but neither
backfire nor external toolchains put their core headers into $(TOOLCHAIN_DIR)/include,
therfore feature detection failed badly.

Location:
packages/libs/re
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/re/Makefile

    r29791 r29799  
    3636                EXTRA_LFLAGS="-lm" \ 
    3737                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    38                 SYSROOT="$(TOOLCHAIN_DIR)" \ 
     38                SYSROOT="$$$$(echo '#include <pthread.h>' | $(TARGET_CROSS)cpp -x c | sed -ne 's,^# [0-9]* \"\(.*\)/include/pthread\.h\".*,\1,p' | head -n1)" \ 
    3939                SYSROOT_ALT="$(STAGING_DIR)/usr" \ 
    4040                RELEASE=1 \ 
Note: See TracChangeset for help on using the changeset viewer.