Ticket #1426 (accepted defect) — at Version 2

Opened 15 years ago

Last modified 15 years ago

linking with --with-glib-static option problem

Reported by: zaytsev Owned by: iNode
Priority: major Milestone: 4.7.0-pre2
Component: mc-core Version: 4.6.2
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description (last modified by iNode) (diff)

(was: RHEL 4 linking problem)

Hi!

I am working on a new universal SPEC for all RH-based distros and to date I came up with

http://nopaste.com/p/aAdSlProT

Now I get

http://nopaste.com/p/auCMzt4cz

Although it compiles fine. The question is what else do I need to link against my glib statically apart from the PKG_CONFIG_PATH?

Thanks!

Change History

Changed 15 years ago by zaytsev

mc.spec.in

Changed 15 years ago by zaytsev

build.log

comment:1 Changed 15 years ago by iNode

Yet another use case for this ticket - #1436.
Fail also in ubuntu 8.04 LTS and ubuntu 9.04.

comment:2 Changed 15 years ago by iNode

  • Status changed from new to accepted
  • Owner set to iNode
  • Description modified (diff)
  • Summary changed from RHEL 4 linking problem to linking with --with-glib-static option problem

library search order change proposed, it should fix this problem,
please try:

-- src/Makefile.am.orig	2009-07-28 10:43:41.000000000 +0400
+++ src/Makefile.am	2009-08-01 16:28:53.000000000 +0400
@@ -42,4 +42,4 @@
 mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
-	$(INTLLIBS) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV) search/libsearch.la \
-	mcconfig/libmcconfig.la
+	$(INTLLIBS) $(MCLIBS) search/libsearch.la \
+	mcconfig/libmcconfig.la $(GLIB_LIBS) $(LIBICONV)
Note: See TracTickets for help on using tickets.