Commit 26563eb7 authored by coppro's avatar coppro

More updates to build system

parent 19094cdf
......@@ -25,7 +25,7 @@ AM_LDFLAGS = @WX_LIBS@ $(BOOST_LDFLAGS)
gcc -x c - -c -o $@ <<<""
magicseteditor_LDADD = $(BOOST_REGEX_LIB)
magicseteditor_CXXFLAGS = -fpch-deps $(AM_CXXFLAGS)
magicseteditor_CXXFLAGS = $(AM_CXXFLAGS)
magicseteditor_SOURCES =
if GLIBCPP_BUILD_PCH
......@@ -34,6 +34,7 @@ clean-local:
rm -f ./src/util/prec.gch
include ./src/util/$(DEPDIR)/prec.Pch
magicseteditor_SOURCES += ./src/util/prec.gch
magicseteditor_CXXFLAGS += -fpch-deps
endif
# The script used to generate is MakeAM.sh' > Makefile.am;
......
......@@ -24,7 +24,7 @@ AM_LDFLAGS = @WX_LIBS@ $(BOOST_LDFLAGS)
gcc -x c - -c -o $@ <<<""
magicseteditor_LDADD = $(BOOST_REGEX_LIB)
magicseteditor_CXXFLAGS = -fpch-deps $(AM_CXXFLAGS)
magicseteditor_CXXFLAGS = $(AM_CXXFLAGS)
magicseteditor_SOURCES =
if GLIBCPP_BUILD_PCH
......@@ -33,6 +33,7 @@ clean-local:
rm -f ./src/util/prec.gch
include ./src/util/$(DEPDIR)/prec.Pch
magicseteditor_SOURCES += ./src/util/prec.gch
magicseteditor_CXXFLAGS += -fpch-deps
endif
# The script used to generate is MakeAM.sh
......
......@@ -42,6 +42,7 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
bin_PROGRAMS = magicseteditor$(EXEEXT)
@GLIBCPP_BUILD_PCH_TRUE@am__append_1 = ./src/util/prec.gch
@GLIBCPP_BUILD_PCH_TRUE@am__append_2 = -fpch-deps
subdir = .
DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(top_srcdir)/configure \
......@@ -471,7 +472,7 @@ AUTOMAKE_OPTIONS = subdir-objects
AM_CXXFLAGS = @WX_CXXFLAGS@ $(BOOST_CXXFLAGS) -I. -Wall
AM_LDFLAGS = @WX_LIBS@ $(BOOST_LDFLAGS)
magicseteditor_LDADD = $(BOOST_REGEX_LIB)
magicseteditor_CXXFLAGS = -fpch-deps $(AM_CXXFLAGS)
magicseteditor_CXXFLAGS = $(AM_CXXFLAGS) $(am__append_2)
# The script used to generate is MakeAM.sh
magicseteditor_SOURCES = $(am__append_1) ./src/code_template.cpp \
......
......@@ -4637,7 +4637,6 @@ fi
LDFLAGS="$LDFLAGS_SAVED"
fi
BOOST_REGEX_LIB="-Wl,-Bstatic $BOOST_REGEX_LIB -Wl,-Bdynamic"
# Check for wxWidgets
......
......@@ -38,7 +38,6 @@ AC_CHECK_LIB([hunspell],[Hunspell_create])
# Check for Boost
AX_BOOST_BASE([1.37.0])
AX_BOOST_REGEX
BOOST_REGEX_LIB="-Wl,-Bstatic $BOOST_REGEX_LIB -Wl,-Bdynamic"
# Check for wxWidgets
AM_OPTIONS_WXCONFIG
......
......@@ -154,7 +154,7 @@ void ItemList::refreshList(bool refresh_current_only) {
getItems(sorted_list);
// Sort the list
if (sort_by_column >= 0) {
sort(sorted_list.begin(), sorted_list.end(), ItemComparer(*this));
stable_sort(sorted_list.begin(), sorted_list.end(), ItemComparer(*this));
}
// Has the entire list changed?
if (refresh_current_only && sorted_list == old_sorted_list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment