]> git.sur5r.net Git - kconfig-frontends/commitdiff
frontends: change the order in which libraries are linked
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun, 26 Feb 2012 17:14:33 +0000 (18:14 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Sun, 26 Feb 2012 17:14:33 +0000 (18:14 +0100)
Currently, it is almost impossible to statically link the frontends,
because the order in which libraries are linked is incorrect.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
frontends/gconf/Makefile.am
frontends/mconf/Makefile.am
frontends/nconf/Makefile.am
frontends/qconf/Makefile.am

index be0c7b9a3c4bc56ea22a7c8f0a2ee3e01bf32151..d016ce861a907d8c35f82229a20c61ab0920066b 100644 (file)
@@ -8,7 +8,7 @@ gconf_CPPFLAGS = $(AM_CPPFLAGS)         \
                  -DGUI_PATH='"$(pkgdatadir)/gconf.glade"'
 gconf_CFLAGS = $(AM_CFLAGS) \
                $(gtk_CFLAGS)
-gconf_LDADD = $(gtk_LIBS)                           \
-              ../../libs/parser/libkconfigparser.la
+gconf_LDADD = ../../libs/parser/libkconfigparser.la \
+              $(gtk_LIBS)
 gconfdir = $(pkgdatadir)
 gconf_DATA = gconf.glade
index abf99ad445720954b8586b2df9443574a3c00548..4da73b7a07012b9938033381c498341c8e6c7e27 100644 (file)
@@ -6,6 +6,6 @@ mconf_CPPFLAGS = $(AM_CPPFLAGS)                 \
                  $(GETTEXT)                     \
                  -I../../libs                   \
                  -I../../libs/parser
-mconf_LDADD = ${ncurses_LIBS}                       \
-              ../../libs/parser/libkconfigparser.la \
-              ../../libs/lxdialog/liblxdialog.a
+mconf_LDADD = ../../libs/parser/libkconfigparser.la \
+              ../../libs/lxdialog/liblxdialog.a     \
+              ${ncurses_LIBS}
index 6391b9eaa71d8158777734838a5e269ac12c619e..8ed6f9fa48bcca5da59121e4ac8758a8408be4a3 100644 (file)
@@ -4,5 +4,5 @@ nconf_SOURCES = nconf.c nconf.gui.c nconf.h
 nconf_CPPFLAGS = $(AM_CPPFLAGS)     \
                  $(GETTEXT)         \
                  -I../../libs/parser
-nconf_LDADD = ${ncurses_LIBS} ${ncurses_extra_LIBS} \
-              ../../libs/parser/libkconfigparser.la
+nconf_LDADD = ../../libs/parser/libkconfigparser.la \
+              ${ncurses_extra_LIBS} ${ncurses_LIBS}
index a27bab1f4d9f298cc03e45c77b14b851e7140807..fabfaebf977cd919b39ec5bdaeeafac0a197b3c2 100644 (file)
@@ -8,8 +8,8 @@ qconf_CPPFLAGS = $(AM_CPPFLAGS)         \
                  -I../../libs/images
 qconf_CXXFLAGS = $(AM_CXXFLAGS) \
                  $(qt4_CFLAGS)
-qconf_LDADD = $(qt4_LIBS)                           \
-              ../../libs/parser/libkconfigparser.la
+qconf_LDADD = ../../libs/parser/libkconfigparser.la \
+              $(qt4_LIBS)
 
 .h.moc:
        moc -i $< -o $@