Skip to content

Commit

Permalink
Link against libm
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow committed Aug 2, 2023
1 parent 18d34af commit 7e40ce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/libclang-linux-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ jobs:
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g -DNDEBUG -static-libgcc -static-libstdc++" \
-DCMAKE_C_FLAGS="-include $(realpath ../../force_glibc_2_17.h)" \
-DCMAKE_CXX_FLAGS="-include $(realpath ../../force_glibc_2_17.h)" \
-DCMAKE_EXE_LINKER_FLAGS="-lm" \
-DCMAKE_SHARED_LINKER_FLAGS="-lm" \
-DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc-8 \
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++-8
- name: build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/libclang-linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ jobs:
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g -DNDEBUG -static-libgcc -static-libstdc++" \
-DCMAKE_C_FLAGS="-march=armv7 -include $(realpath ../../force_glibc_2_17.h)" \
-DCMAKE_CXX_FLAGS="-march=armv7 -include $(realpath ../../force_glibc_2_17.h)" \
-DCMAKE_EXE_LINKER_FLAGS="-lm" \
-DCMAKE_SHARED_LINKER_FLAGS="-lm" \
-DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc-8 \
-DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++-8
- name: build
Expand Down

0 comments on commit 7e40ce4

Please sign in to comment.