]> git.cameronkatri.com Git - ldid.git/commitdiff
ci: Set CXXFLAGS
authorCameron Katri <me@cameronkatri.com>
Wed, 19 Jan 2022 04:52:24 +0000 (23:52 -0500)
committerCameron Katri <me@cameronkatri.com>
Wed, 19 Jan 2022 04:52:24 +0000 (23:52 -0500)
.github/workflows/build.yml

index fd82d0738252ecf296124f14a182b02ced9822dd..c1c61a218c6421bc5ef93e76714b5c2d878550c3 100644 (file)
@@ -80,6 +80,7 @@ jobs:
         echo "NM=${TRIPLE}-gcc-nm" >> $GITHUB_ENV
         echo "RANLIB=${TRIPLE}-gcc-ranlib" >> $GITHUB_ENV
         echo "CFLAGS=-Os -fPIC -fno-pie -no-pie -static -flto -ffunction-sections -fdata-sections" >> $GITHUB_ENV
+        echo "CXXFLAGS=${CFLAGS}" >> $GITHUB_ENV
         echo "LDFLAGS=-Wl,--gc-sections -Wl,-strip-all -flto" >> $GITHUB_ENV
 
     - name: build libplist
@@ -221,6 +222,7 @@ jobs:
         export LDID_VERSION=$(echo "$(git describe --tags --abbrev=0)")
         make -j$(sysctl -n hw.ncpu) \
           CFLAGS="${CFLAGS} -flto=thin" \
+          CXXFLAGS="${CFLAGS} -flto=thin" \
           VERSION="${LDID_VERSION}" \
           LIBS="${LIBPLIST_LIB} ${LIBCRYPTO_LIB}"
         strip ldid