Skip to content

Commit 28ba2af

Browse files
authored
Don't add ldflags to aom library (#1581)
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`
1 parent ca79f33 commit 28ba2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Modules/Findaom.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ find_path(AOM_INCLUDE_DIR NAMES aom/aom.h PATHS ${_AOM_INCLUDEDIR})
2626

2727
find_library(AOM_LIBRARY NAMES aom PATHS ${_AOM_LIBDIR})
2828

29-
set(AOM_LIBRARIES ${AOM_LIBRARIES} ${AOM_LIBRARY} ${_AOM_LDFLAGS})
29+
set(AOM_LIBRARIES ${AOM_LIBRARIES} ${AOM_LIBRARY})
3030

3131
include(FindPackageHandleStandardArgs)
3232
find_package_handle_standard_args(

0 commit comments

Comments
 (0)