Skip to content

Commit

Permalink
fix termux build
Browse files Browse the repository at this point in the history
  • Loading branch information
john-peterson committed May 6, 2024
1 parent 90fca71 commit b1c8383
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ if(UNIX OR MINGW)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
if(NOT APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc ")
endif()
endif()
if((UNIX AND BUILD64) OR (MINGW AND CMAKE_SIZEOF_VOID_P EQUAL 8))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if(WIN32)
target_link_libraries(3dstool curl crypto)
endif()
else()
target_link_libraries(3dstool curl ssl crypto)
target_link_libraries(3dstool curl ssl crypto capstone)
if(APPLE)
target_link_libraries(3dstool ldap)
else()
Expand Down
2 changes: 1 addition & 1 deletion src/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define CODE_H_

#include "utility.h"
#include <capstone.h>
#include <capstone/capstone.h>

class CCode
{
Expand Down

0 comments on commit b1c8383

Please sign in to comment.