Skip to content

Commit

Permalink
Don't add ldflags to aom library (AOMediaCodec#1581)
Browse files Browse the repository at this point in the history
To link with aom, only AOM_LIBRARY is needed. Don't append LDFLAGS
from pkgconfig, which contain (duplicate) flags to link the very same
library, also in error-prone -L/-l form.

Link with aom before: `/usr/local/lib/libaom.so  -L/usr/local/lib -laom`
Link with aom after: `/usr/local/lib/libaom.so`
  • Loading branch information
AMDmi3 authored Sep 25, 2023
1 parent ca79f33 commit 28ba2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/Findaom.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ find_path(AOM_INCLUDE_DIR NAMES aom/aom.h PATHS ${_AOM_INCLUDEDIR})

find_library(AOM_LIBRARY NAMES aom PATHS ${_AOM_LIBDIR})

set(AOM_LIBRARIES ${AOM_LIBRARIES} ${AOM_LIBRARY} ${_AOM_LDFLAGS})
set(AOM_LIBRARIES ${AOM_LIBRARIES} ${AOM_LIBRARY})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
Expand Down

0 comments on commit 28ba2af

Please sign in to comment.