mirror of https://github.com/tstellar/bygfoot.git
cmake: Compile with -fcommon
Newer versions of gcc and clang default to fno-common and our global variable usage requires -fcommon.
This commit is contained in:
parent
bc4a6ded85
commit
dd115a7e69
|
@ -140,7 +140,11 @@ add_executable(bygfoot WIN32
|
|||
)
|
||||
# Some gtk headers use deprecated glib features, so disable this warning
|
||||
# since we can't do anything about it.
|
||||
target_compile_options(bygfoot PRIVATE -Wno-deprecated-declarations)
|
||||
# Newer versions of gcc and clang enable fno-common by default and
|
||||
# this won't work with the global variables in bygfoot.
|
||||
target_compile_options(bygfoot PRIVATE
|
||||
-Wno-deprecated-declarations
|
||||
-fcommon)
|
||||
# Link the target to the GTK+ libraries
|
||||
target_link_libraries (bygfoot ${GTK2_LIBRARIES} ${GLIB_LIBRARIES} m
|
||||
${ZLIB_LIBRARIES} ${JSON-C_LIBRARIES})
|
||||
|
|
Loading…
Reference in New Issue