Skip to content

Commit

Permalink
Enable c++11 when building sample applications for linux release
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd committed Sep 5, 2024
1 parent b02d2d8 commit 9fa3f12
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ jobs:
if: success() && matrix.type == 'apps'
run: |
export CFLAGS="-O3"
export CXXFLAGS="-O3"
export CXXFLAGS="-O3 -std=c++11"
export LDFLAGS="-static-libstdc++ -s"
export RELEASE_ARCH=x86_64
./configure --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager
Expand All @@ -256,7 +256,7 @@ jobs:
if: success() && matrix.type == 'apps-x86'
run: |
export CFLAGS="-O3 -m32"
export CXXFLAGS="-O3 -m32"
export CXXFLAGS="-O3 -m32 -std=c++11"
export LDFLAGS="-static-libstdc++ -s -m32"
export RELEASE_ARCH=i686
./configure --enable-apps --enable-apps-vbox --disable-server --disable-client --disable-manager --host=i686-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion linux/arm64/build_curl_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++
export LD=aarch64-linux-gnu-ld
export CFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3"
export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3"
export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -std=c++11"
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++"

MAKE_FLAGS=""
Expand Down
2 changes: 1 addition & 1 deletion linux/arm64/build_example_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++
export LD=aarch64-linux-gnu-ld
export CFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR"
export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR"
export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR -std=c++11"
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++"

CONFIG_FLAGS="--with-ssl=$TCINCLUDES --with-libcurl=$TCINCLUDES"
Expand Down
2 changes: 1 addition & 1 deletion linux/arm64/build_libraries_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++
export LD=aarch64-linux-gnu-ld
export CFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3"
export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3"
export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3 -std=c++11"
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -static-libstdc++ -static"

MAKE_FLAGS=""
Expand Down
2 changes: 1 addition & 1 deletion linux/arm64/build_openssl_arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++
export LD=aarch64-linux-gnu-ld
export CFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3"
export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3"
export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3 -std=c++11"
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++"

MAKE_FLAGS=""
Expand Down

0 comments on commit 9fa3f12

Please sign in to comment.