Skip to content

Commit

Permalink
Added compile option -fPIC. Required with clang++ when linking applic…
Browse files Browse the repository at this point in the history
…ation with static library libexiv2.a
  • Loading branch information
bertwim committed May 16, 2024
1 parent 72f5bc3 commit 26aea5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ option(EXIV2_TEAM_OSS_FUZZ "Build config for OSS-Fuzz" OFF)

option(EXIV2_TEAM_PACKAGING "Additional stuff for generating packages" OFF)
set(EXTRA_COMPILE_FLAGS " ")
add_compile_options( "-fPIC" )

mark_as_advanced(EXIV2_TEAM_EXTRA_WARNINGS EXIV2_TEAM_WARNINGS_AS_ERRORS EXIV2_ENABLE_EXTERNAL_XMP EXTRA_COMPILE_FLAGS EXIV2_TEAM_USE_SANITIZERS)

Expand Down

0 comments on commit 26aea5c

Please sign in to comment.