Skip to content

Commit

Permalink
Remove dependency of tcc with libgcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 25, 2024
1 parent ab51496 commit b0d8bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/InstallLibTCC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if(PROJECT_OS_FAMILY STREQUAL unix)
if(OPTION_BUILD_MUSL)
set(LIBTCC_CONFIGURE ./configure --prefix=${LIBTCC_INSTALL_PREFIX} ${LIBTCC_DEBUG} --disable-static --config-musl)
else()
set(LIBTCC_CONFIGURE ./configure --prefix=${LIBTCC_INSTALL_PREFIX} ${LIBTCC_DEBUG} --disable-static --with-libgcc --with-selinux)
set(LIBTCC_CONFIGURE ./configure --prefix=${LIBTCC_INSTALL_PREFIX} ${LIBTCC_DEBUG} --disable-static --with-selinux)
endif()
elseif(PROJECT_OS_FAMILY STREQUAL macos)
# TODO: --disable-static is not working on MacOS, this should be reported or further investigated
Expand Down Expand Up @@ -87,7 +87,7 @@ elseif(PROJECT_OS_FAMILY STREQUAL macos)
set(LIBTCC_CONFIGURE ./configure --prefix=${LIBTCC_INSTALL_PREFIX} ${LIBTCC_DEBUG} --enable-cross) # --disable-static
elseif(PROJECT_OS_FAMILY STREQUAL win32)
if(PROJECT_OS_NAME STREQUAL MinGW)
set(LIBTCC_CONFIGURE ./configure --prefix=${LIBTCC_INSTALL_PREFIX} ${LIBTCC_DEBUG} --config-mingw32 --disable-static --with-libgcc --with-selinux)
set(LIBTCC_CONFIGURE ./configure --prefix=${LIBTCC_INSTALL_PREFIX} ${LIBTCC_DEBUG} --config-mingw32 --disable-static)
else()
set(LIBTCC_CONFIGURE "")
endif()
Expand Down

0 comments on commit b0d8bc9

Please sign in to comment.