cxx: use PIC by default so we can produce dynamic libraries
This commit is contained in:
parent
b695b56ead
commit
bf694b3085
@ -76,6 +76,7 @@ add_definitions("-Drestrict=${RESTRICT_KEYWORD}")
|
|||||||
append_compile_flag("-pipe")
|
append_compile_flag("-pipe")
|
||||||
append_compile_flag("-fno-deduce-init-list")
|
append_compile_flag("-fno-deduce-init-list")
|
||||||
append_compile_flag("-fvisibility=hidden")
|
append_compile_flag("-fvisibility=hidden")
|
||||||
|
append_compile_flag("-fPIC")
|
||||||
|
|
||||||
append_compile_flag("-D__STDC_FORMAT_MACROS")
|
append_compile_flag("-D__STDC_FORMAT_MACROS")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user