File: no_strip.diff

package info (click to toggle)
luametatex 2.11.08%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,156 kB
  • sloc: ansic: 252,593; makefile: 389; sh: 98
file content (33 lines) | stat: -rw-r--r-- 1,159 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Do not strip binary after build.
Author: Hilmar Preusse <hille42@web.de>
Last-Update: 2025-10-26
Forwarded: not-needed

--- luametatex-2.11.08.orig/CMakeLists.txt
+++ luametatex-2.11.08/CMakeLists.txt
@@ -36,7 +36,7 @@
 # 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)
 
 # When one wants to use Lua libraries, this is needed. But keep in mind that it's not supported, 
 # so we won't look into issues that could result from that. Getting a matching library is upto 
--- luametatex-2.11.08.orig/cmake/luametatex.cmake
+++ luametatex-2.11.08/cmake/luametatex.cmake
@@ -79,14 +79,3 @@
         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()