Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37517866
en ru br
ALT Linux repos
S:1.83.1-alt1
5.0: 1.58-alt1
4.1: 1.55-alt1

Group :: System/Libraries
RPM: libleptonica

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libleptonica-1.69-alt-debuginfo.patch
Download


diff --git a/prog/makefile.static b/prog/makefile.static
index 2d37791..7ad92ec 100644
--- a/prog/makefile.static
+++ b/prog/makefile.static
@@ -79,7 +79,7 @@ LIB_SHARED_DIR =	$(ROOT_DIR)/lib/shared
 # Include files are found within the same tree
 IMAGELIB_INCL =	$(ROOT_DIR)/src
 
-CC =            gcc -std=c99 -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO
+CC =            gcc -std=c99 -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO -G
 #CC =           gcc -std=c89 -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO
 #CC =		gcc -std=gnu99 -D_POSIX_C_SOURCE=200809L -DANSI -fPIC
 #CC =		gcc -std=gnu89 -DANSI -fPIC
@@ -88,14 +88,14 @@ CC =            gcc -std=c99 -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO
 
 ifdef  SHARED
     LIB_DIR =	$(LIB_SHARED_DIR)
-    OPTIMIZE =	-O2
+    OPTIMIZE =	-O2 -g
 else
     ifdef  DEBUG
 	LIB_DIR =	$(LIB_DEBUG_DIR)
 	OPTIMIZE =	-g
     else
 	LIB_DIR =	$(LIB_NODEBUG_DIR)
-	OPTIMIZE =	-O2
+	OPTIMIZE =	-O2 -g
     endif
 endif
 
diff --git a/src/makefile.static b/src/makefile.static
index c2c46bb..1fe9ae7 100644
--- a/src/makefile.static
+++ b/src/makefile.static
@@ -110,7 +110,7 @@ PROTOTYPE_DIR =	.
 #        ERROR_* logging, and to remove all DEBUG information dependent
 #        on whether or not NO_CONSOLE_IO has been defined.
 #     - remove -fPIC for Cygwin
-CC =		gcc -std=c99 -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO
+CC =		gcc -std=c99 -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO -g
 #CC =		gcc -std=c89 -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO
 #CC =		gcc -std=c99 -D_POSIX_C_SOURCE=200809L -D__USE_MINGW_ANSI_STDIO -D_BSD_SOURCE -DANSI -fPIC
 #CC =		gcc -std=gnu89 -D__USE_MINGW_ANSI_STDIO
@@ -130,12 +130,12 @@ ENDIANNESS = $(shell echo __BYTE_ORDER | $(CC) -include endian.h -E - | grep -q
 SONAME_OPTION = -Wl,-h,
 
 ifdef  SHARED
-    OPTIMIZE =		-O2 -fPIC
+    OPTIMIZE =		-O2 -fPIC -g
 else
     ifdef  DEBUG
 	OPTIMIZE =	-g
     else
-	OPTIMIZE =	-O2
+	OPTIMIZE =	-O2 -g
     endif
 endif
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin