[csw-devel] SF.net SVN: gar:[14810] csw/mgar/pkg/scintilla/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Jun 14 14:15:49 CEST 2011


Revision: 14810
          http://gar.svn.sourceforge.net/gar/?rev=14810&view=rev
Author:   dmichelsen
Date:     2011-06-14 12:15:49 +0000 (Tue, 14 Jun 2011)

Log Message:
-----------
scintilla: Fix linkage

Modified Paths:
--------------
    csw/mgar/pkg/scintilla/trunk/Makefile

Modified: csw/mgar/pkg/scintilla/trunk/Makefile
===================================================================
--- csw/mgar/pkg/scintilla/trunk/Makefile	2011-06-14 11:39:40 UTC (rev 14809)
+++ csw/mgar/pkg/scintilla/trunk/Makefile	2011-06-14 12:15:49 UTC (rev 14810)
@@ -19,6 +19,14 @@
 PACKAGES += CSWlibscintilla2
 SPKG_DESC_CSWlibscintilla2 = Library source code editing component, libscintilla.so.2
 PKGFILES_CSWlibscintilla2 = $(call pkgfiles_lib,libscintilla.so.2)
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWfconfig
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWlibintl8
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWftype2
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWgtk2
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWlibatk
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWpango
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWlibcairo2
+RUNTIME_DEP_PKGS_CSWlibscintilla2 += CSWglib2
 
 PACKAGES += CSWlibscintilla-dev
 SPKG_DESC_CSWlibscintilla-dev = Development files for libscintilla.so.2
@@ -34,6 +42,8 @@
 # pic13 is too small
 EXTRA_CXXFLAGS = -xcode=pic32
 
+EXTRA_LINKER_FLAGS = -norunpath
+
 # Ugh, manual makefile.
 CONFIGURE_SCRIPTS =
 
@@ -49,12 +59,12 @@
 
 include gar/category.mk
 
-install-custom: _LINK64=$(if $(filter 64,$(MEMORYMODEL)),-64,)
+install-custom: LINKFLAGS_GTK=$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(bindir_install)/pkg-config --libs gtk+-2.0)
 install-custom:
 	mkdir -p $(DESTDIR)$(includedir)
 	cp $(WORKDIR)/$(DISTNAME)/include/* $(DESTDIR)$(includedir)
 	mkdir -p $(DESTDIR)$(libdir)
-	cd $(WORKDIR)/$(DISTNAME)/bin && ld $(_LINK64) -G -z allextract -h libscintilla.so.2 scintilla.a  -o $(DESTDIR)$(libdir)/libscintilla.so.2.26
+	cd $(WORKDIR)/$(DISTNAME)/bin && $(CXX) $(LDFLAGS) -R $(libdir) -lCstd $(LINKFLAGS_GTK) -G -z allextract -h libscintilla.so.2 scintilla.a  -o $(DESTDIR)$(libdir)/libscintilla.so.2.26
 	ln -s libscintilla.so.2.26 $(DESTDIR)$(libdir)/libscintilla.so.2
 	ln -s libscintilla.so.2.26 $(DESTDIR)$(libdir)/libscintilla.so
 	@$(MAKECOOKIE)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list