mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
cmake: Fix the shared build on Android
The ld version script should not be generated on Android. Co-authored-by: Volker Krause <vkrause@kde.org> Co-authored-by: Cosmin Truta <ctruta@gmail.com> Signed-off-by: Cosmin Truta <ctruta@gmail.com>
This commit is contained in:
@@ -223,9 +223,10 @@ set(CMAKE_DEBUG_POSTFIX "d")
|
|||||||
|
|
||||||
include(CheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
option(ld-version-script "Enable linker version script" ON)
|
option(ld-version-script "Enable linker version script" ON)
|
||||||
if(ld-version-script AND NOT APPLE)
|
if(ld-version-script AND NOT ANDROID AND NOT APPLE)
|
||||||
# Check if LD supports linker scripts.
|
# Check if LD supports linker scripts.
|
||||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map" "VERS_1 {
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map" "
|
||||||
|
VERS_1 {
|
||||||
global: sym;
|
global: sym;
|
||||||
local: *;
|
local: *;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user