Sisyphus repository
Last update: 12 august 2022 | SRPMs: 17595 | Visits: 24761384
en ru br
ALT Linux repos
S:1.82.0-alt2
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-alt-makefile.patch
Download


--- leptonlib-1.57/src/makefile.orig	2008-03-19 22:16:44 -0500
+++ leptonlib-1.57/src/makefile	2008-03-21 22:35:45 -0500
@@ -112,7 +112,7 @@
 #        ERROR_* logging, and to remove all DEBUG information dependent
 #        on whether or not NO_CONSOLE_IO has been defined.
 #     use -D_CYGWIN_ENVIRON (and without -fPIC) for cygwin
-CC =		gcc -ansi -Werror -D_BSD_SOURCE -DANSI -fPIC
+CC =		gcc -ansi -D_BSD_SOURCE -DANSI -fPIC
 #CC =		gcc -ansi -Werror -D_CYGWIN_ENVIRON -DANSI
 #CC =		gcc -ansi -Werror -DNO_CONSOLE_IO -D_BSD_SOURCE -DANSI -fPIC
 #CC =		g++ -Werror -D_BSD_SOURCE -fPIC
@@ -145,6 +145,8 @@
 OPTIONS =
 CFLAGS =		$(OPTIMIZE) $(OPTIONS)
 LIBRARIAN_SHARED =	gcc -shared
+LDFLAGS =
+LIBADD = -ltiff -ljpeg -lpng -lm
 
 #   Libraries differing only in their minor revision numbers
 #   are required to have the same interface.  By using
@@ -288,7 +290,7 @@
 
 $(LIB_SHARED)/%.so:
 		$(RM) $@
-		$(LIBRARIAN_SHARED) $(SONAME_OPTION)$(notdir $@).$(MAJOR_REV) -o $@ $<
+		$(LIBRARIAN_SHARED) $(SONAME_OPTION)$(notdir $@).$(MAJOR_REV) $(LDFLAGS) -o $@ $< $(LIBADD)
 	mv $@ $@.$(MAJOR_REV).$(MINOR_REV)
 	cd $(LIB_SHARED); rm $(notdir $@).$(MAJOR_REV); \
 	  ln -s $(notdir $@).$(MAJOR_REV).$(MINOR_REV) $(notdir $@).$(MAJOR_REV)
@@ -318,7 +320,7 @@
 leptlibs:	$(LIB_SHARED)/$(LEPTLIB_SHARED)
 $(LIB_SHARED)/$(LEPTLIB_SHARED):	$(LEPTLIB_C:%.c=$(OBJ_SHARED)/%.o)
 		$(RM) $@
-		$(LIBRARIAN_SHARED) $(SONAME_OPTION)$(notdir $@).$(MAJOR_REV) -o $@ $(LEPTLIB_C:%.c=$(OBJ_SHARED)/%.o)
+		$(LIBRARIAN_SHARED) $(SONAME_OPTION)$(notdir $@).$(MAJOR_REV) $(LDFLAGS) -o $@ $(LEPTLIB_C:%.c=$(OBJ_SHARED)/%.o) $(LIBADD)
 	mv $@ $@.$(MAJOR_REV).$(MINOR_REV)
 	cd $(LIB_SHARED); rm $(notdir $@).$(MAJOR_REV); \
 	  ln -s $(notdir $@).$(MAJOR_REV).$(MINOR_REV) $(notdir $@).$(MAJOR_REV)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin