* Use an older glibc so resulting binaries can run on older systems (without having to link statically against glibc) * Call packages static-compat-* to make it clear that these packages are intended for compatibility with older distributions * Add further libraries to get static-compat-qt6-base and some other static-compat-qt6-* packages building
15 lines
543 B
Bash
15 lines
543 B
Bash
#!/bin/sh
|
|
|
|
source static-compat-environment
|
|
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX:PATH="$static_compat_prefix" \
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=lib \
|
|
-DCMAKE_FIND_ROOT_PATH:PATH="$static_compat_prefix" \
|
|
-DCMAKE_C_COMPILER:PATH="$static_compat_prefix/bin/gcc" \
|
|
-DCMAKE_CXX_COMPILER:PATH="$static_compat_prefix/bin/g++" \
|
|
-DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES:PATH="$static_compat_prefix"/include \
|
|
-DCMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES:PATH="$static_compat_prefix"/include \
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
|
"$@"
|