diff options
Diffstat (limited to 'data/_apt1.8/debugmake.sh')
-rw-r--r-- | data/_apt1.8/debugmake.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/data/_apt1.8/debugmake.sh b/data/_apt1.8/debugmake.sh new file mode 100644 index 000000000..1c4d52497 --- /dev/null +++ b/data/_apt1.8/debugmake.sh @@ -0,0 +1,38 @@ +pkg:setup +cat >iphoneos_toolchain.cmake <<EOF +set(CMAKE_SYSTEM_NAME Darwin) # Tell CMake we're cross-compiling +set(CMAKE_CROSSCOMPILING true) +#include(CMakeForceCompiler) +# Prefix detection only works with compiler id "GNU" +# CMake will look for prefixed g++, cpp, ld, etc. automatically +set(CMAKE_SYSTEM_PROCESSOR aarch64) +set(triple ${PKG_TARG}) +set(CMAKE_FIND_ROOT_PATH $(echo ${PKG_PATH} | sed -e s/:/' '/g)) +set(CMAKE_LIBRARY_PATH $(echo ${LIBRARY_PATH} | sed -e s/:/' '/g)) +set(CMAKE_INCLUDE_PATH $(echo ${INCLUDE_PATH} | sed -e s/:/' '/g)) +set(CMAKE_C_COMPILER ${PKG_TARG}-clang) +set(CMAKE_CXX_COMPILER ${PKG_TARG}-clang++) +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(DPKG_DATADIR /usr/share/dpkg) +string(APPEND CMAKE_C_FLAGS_DEBUG "-O1 -fsanitize=address -fno-omit-frame-pointer ") +string(APPEND CMAKE_CXX_FLAGS_DEBUG "-O1 -fsanitize=address -fno-omit-frame-pointer ") +string(APPEND CMAKE_EXE_LINKER_FLAGS_DEBUG "-O1 -fsanitize=address -fno-omit-frame-pointer ") +set(CMAKE_INSTALL_CONFIG_NAME "Debug") +EOF + +#string(APPEND CMAKE_CXX_FLAGS_DEBUG "-O -g -fsanitize=address -fno-omit-frame-pointer ") +cmake -j8 -DINSTALL_CONFIG_NAME="Debug" -DCMAKE_INSTALL_CONFIG_NAME="Debug" -DBUILD_TYPE="Debug" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_TOOLCHAIN_FILE=iphoneos_toolchain.cmake -DCMAKE_LOCALSTATEDIR="/private/var" -DCMAKE_INSTALL_NAME_DIR="/usr/lib" -DCMAKE_INSTALL_RPATH="/usr/" -DCMAKE_OSX_SYSROOT="${PKG_ROOT}" -DCMAKE_INSTALL_PREFIX="/usr/" -DCMAKE_SHARED_LINKER_FLAGS="-lresolv" -DCURRENT_VENDOR=debian -DUSE_NLS=0 -DWITH_DOC=0 -DCOMMON_ARCH=${PKG_ARCH} . +make -j16 VERBOSE=1 + +pkg: mkdir -p /etc/apt/apt.conf.d +pkg: mkdir -p /etc/apt/preferences.d +pkg: mkdir -p /etc/apt/sources.list.d +pkg: mkdir -p /etc/apt/trusted.gpg.d +pkg: mkdir -p /var/cache/apt/archives/partial +pkg: mkdir -p /var/lib/apt/lists/partial +pkg: mkdir -p /var/lib/apt/periodic +pkg: mkdir -p /var/log/apt + +pkg:install |