Do not strip binary after build.
authorHilmar Preusse <hille42@web.de>
Sat, 15 Jun 2024 21:25:01 +0000 (23:25 +0200)
committerHilmar Preusse <hille42@web.de>
Sat, 15 Jun 2024 21:25:01 +0000 (23:25 +0200)
Last-Update: 2023-04-17
Forwarded: not-needed

Gbp-Pq: Name no_strip.diff

CMakeLists.txt
cmake/luametatex.cmake

index 37e9e04573e0bdf3f5407ebb719e2bf9cd3ea8d3..e6550d0142dab326ac849459fe352bac88d7439a 100644 (file)
@@ -28,7 +28,7 @@ set(LMT_HB_TOO   1) # Maybe handy for Idris' font development (old converted ffi
 # nice (the smaller as runner the better). After all, we don't load external (Lua) libraries 
 # anyway. 
 
-set(LMT_STRIP 1)
+set(LMT_STRIP 1)
 
 if (MSVC)
 
index 85da18da61f2156da9e1acac6b4181219fa91ff4..7d772ae415e81f6ca8c4cd677f2d4a538481dbc9 100644 (file)
@@ -77,14 +77,3 @@ if (${CMAKE_HOST_SOLARIS})
         resolv
 )
 endif()
-
-if (DEFINED LMT_OPTIMIZE)
-    # we strip anyway
-elseif (CMAKE_HOST_SOLARIS)
-    # no strip
-elseif (CMAKE_C_COMPILER_ID MATCHES "GNU")
-    # -g -S -d : remove all debugging symbols & sections
-    # -x       : remove all non-global symbols
-    # -X       : remove any compiler-generated symbols
-    add_custom_command(TARGET luametatex POST_BUILD COMMAND ${CMAKE_STRIP} -g -S -d -x luametatex${CMAKE_EXECUTABLE_SUFFIX})
-endif()