Skip to content

Commit c9cef7c

Browse files
committed
Build with fPIC
Older GNU toolchains will complain about static linking (fedora34 and friends).
1 parent fdc1c3f commit c9cef7c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## v0.0.2 (2022-07-07)
22

33
* Moved repository
4+
* Compile with fPIC
45

56
## v0.0.1 (2022-07-07)
67

lib/libhdr_histogram/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ if(UNIX)
4545
-Wshadow
4646
-Winit-self
4747
-Wpedantic
48+
-fPIC
4849
$<$<COMPILE_LANGUAGE:C>:-Wmissing-prototypes>)
4950
add_definitions(-D_GNU_SOURCE)
5051
endif()

0 commit comments

Comments
 (0)