depends: freebsd: don't clobber sysroot with native package install dirs

This commit is contained in:
tobtoht
2026-02-03 13:55:01 +01:00
parent 04f88f198c
commit f129a0ed9d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
freebsd_CC=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \
-u LIBRARY_PATH clang --target=$(host) --sysroot=$(host_prefix)/native -iwithsysroot/usr/include
-u LIBRARY_PATH clang --target=$(host) --sysroot=$(build_prefix)/sysroot -iwithsysroot/usr/include
freebsd_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \
-u LIBRARY_PATH clang++ --target=$(host) -stdlib=libc++ --sysroot=$(host_prefix)/native \
-u LIBRARY_PATH clang++ --target=$(host) -stdlib=libc++ --sysroot=$(build_prefix)/sysroot \
-iwithsysroot/usr/include/c++/v1 -iwithsysroot/usr/include
freebsd_AR=ar
+2 -2
View File
@@ -14,7 +14,7 @@ endef
# statically link our own version of OpenSSL.
define $(package)_stage_cmds
mkdir $($(package)_staging_prefix_dir) &&\
mkdir -p $($(package)_staging_prefix_dir)/sysroot &&\
rm -rf usr/include/openssl &&\
mv lib usr $($(package)_staging_prefix_dir)
mv lib usr $($(package)_staging_prefix_dir)/sysroot
endef