Skip to content

Commit

Permalink
Add -fcommon gcc option to fix linking error #7
Browse files Browse the repository at this point in the history
  • Loading branch information
EXL committed Aug 7, 2022
1 parent 174dfc8 commit 9fd9253
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gish/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ include_directories(${PROJECT_NAME}
${Vorbis_INCLUDE_DIR}
${PNG_INCLUDE_DIR})

set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -fcommon)

if(GLES)
message(STATUS "Build w/ using OpenGLES libraries!")
set(TARGET_NAME "Gish-gles")
Expand Down

0 comments on commit 9fd9253

Please sign in to comment.