Sisyphus repository
Last update: 26 january 2022 | SRPMs: 17491 | Visits: 22842700
en ru br
ALT Linux repos
S:1.82.0-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/leptonlib/prog/makefile.static b/leptonlib/prog/makefile.static
index f0fc5ce..342b647 100644
--- a/leptonlib/prog/makefile.static
+++ b/leptonlib/prog/makefile.static
@@ -90,21 +90,21 @@ LIB_SHARED_DIR =	$(ROOT_DIR)/lib/shared
 IMAGELIB_INCL =	$(ROOT_DIR)/src
 
 
-CC =		gcc -ansi -DANSI -fPIC
+CC =		gcc -ansi -DANSI -fPIC -g
 #CC =		gcc -ansi -Werror -DANSI -fPIC
 #CC =            g++ -Werror -fPIC
 
 
 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/leptonlib/src/makefile.static b/leptonlib/src/makefile.static
index 0b75165..59447ec 100644
--- a/leptonlib/src/makefile.static
+++ b/leptonlib/src/makefile.static
@@ -107,7 +107,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 -ansi -D_BSD_SOURCE -DANSI -fPIC
+CC =		gcc -ansi -D_BSD_SOURCE -DANSI -fPIC -g
 #CC =		gcc -ansi -D_BSD_SOURCE -DANSI -Werror -fPIC
 #CC =		g++ -D_BSD_SOURCE -fPIC
 #CC =		g++ -Wunused -D_BSD_SOURCE -fPIC
@@ -126,12 +126,12 @@ CPPFLAGS =      $(INCLUDES) -D$(ENDIANNESS)
 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