Skip to content

Commit

Permalink
Fix linking on x86
Browse files Browse the repository at this point in the history
  • Loading branch information
captainurist committed Sep 19, 2023
1 parent c0ed4de commit 463f048
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Build
working-directory: build
run: |
make -j3
make -j3 VERBOSE=1
- name: Run unit tests
working-directory: build
Expand Down
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ check_linker_flag(CXX "-fuse-ld=mold" COMPILER_RT_HAS_FUSE_LD_MOLD_FLAG)
check_linker_flag(CXX "-fuse-ld=lld" COMPILER_RT_HAS_FUSE_LD_LLD_FLAG)
check_linker_flag(CXX "-fuse-ld=gold" COMPILER_RT_HAS_FUSE_LD_GOLD_FLAG)

# Adjust available linkers. On x86 linux we're building ffmpeg statically with --enable-asm, and lld chokes on it.
if (COMPILER_RT_HAS_FUSE_LD_LLD_FLAG AND OE_USE_PREBUILT_DEPENDENCIES AND BUILD_PLATFORM STREQUAL "linux" AND BUILD_ARCH STREQUAL "x86")
set(COMPILER_RT_HAS_FUSE_LD_LLD_FLAG OFF)
endif()

# Set compiler options.
# We do a lot of tweaks here.
add_compile_definitions(FMT_USE_NONTYPE_TEMPLATE_ARGS) # Enable _cf literals
Expand Down

0 comments on commit 463f048

Please sign in to comment.