File scintilla-shared.patch of Package scintilla

diff -Naru scintilla-bak/gtk/makefile scintilla/gtk/makefile
--- scintilla-bak/gtk/makefile	2008-12-19 17:43:38.000000000 +0100
+++ scintilla/gtk/makefile	2008-12-19 18:20:03.000000000 +0100
@@ -17,13 +17,13 @@
 RANLIB = ranlib
 endif
 
-COMPLIB=../bin/scintilla.a
+COMPLIB=../bin/libscintilla.la
 
 vpath %.h ../src ../include
 vpath %.cxx ../src
 
 INCLUDEDIRS=-I ../include -I ../src
-CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -Os -DGTK -DSCI_LEXER $(INCLUDEDIRS)
+CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -O3 -fPIC -DPIC -DGTK -DSCI_LEXER $(INCLUDEDIRS)
 
 ifdef NOTHREADS
 THREADFLAGS=-DG_THREADS_IMPL_NONE
@@ -41,6 +41,7 @@
 # pkg-config which is an OK indication that GTK2 is available
 ifdef GTK2
 CONFIGFLAGS=$(shell pkg-config --cflags gtk+-2.0)
+CONFIGLDFLAGS=$(shell pkg-config --libs gtk+-2.0)
 MARSHALLER=scintilla-marshal.o
 else
 ifdef GTK1
@@ -89,8 +90,7 @@
 	KeyMap.o LineMarker.o PositionCache.o ScintillaGTK.o CellBuffer.o ViewStyle.o \
 	RESearch.o RunStyles.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o \
 	$(MARSHALLER) $(LEXOBJS)
-	$(AR) rc $@ $^
-	$(RANLIB) $@
+	libtool --mode=link gcc -g -O3 -o $@ $^ -rpath $(LIBDIR) $(CONFIGLDFLAGS) -version-info $(VERSION)
 
 # Automatically generate header dependencies with "make deps"
 include deps.mak
openSUSE Build Service is sponsored by