mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-06 06:32:45 +00:00
build: move -no-pie to linker flags
This commit is contained in:
parent
9d78ea1e07
commit
63d082fc5a
@ -13,14 +13,9 @@ project(amiberry
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
# Silence warnings about unused arguments
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3 -pipe -fno-pie")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-Og -g -funwind-tables -DDEBUG -pipe -fno-pie")
|
||||
else ()
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3 -pipe -fno-pie -no-pie")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-Og -g -funwind-tables -DDEBUG -pipe -fno-pie -no-pie")
|
||||
endif ()
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3 -pipe -fno-pie")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-Og -g -funwind-tables -DDEBUG -pipe -fno-pie")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-no-pie")
|
||||
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user