summaryrefslogtreecommitdiffstats
path: root/src/lookup
diff options
context:
space:
mode:
authorPeng Wu <pwu@redhat.com>2019-11-28 15:42:26 +0800
committerPeng Wu <pwu@redhat.com>2019-11-28 15:42:26 +0800
commit50a87b3efe0b10a9ae2ce989c0c0172e2984af32 (patch)
tree87f75013414c0e1fa02003758054876b31766061 /src/lookup
parent51c551dc9a8b264315100a774720373a0e3744e6 (diff)
downloadlibpinyin-50a87b3efe0b10a9ae2ce989c0c0172e2984af32.tar.gz
libpinyin-50a87b3efe0b10a9ae2ce989c0c0172e2984af32.tar.xz
libpinyin-50a87b3efe0b10a9ae2ce989c0c0172e2984af32.zip
improve autoconf for libpinyin_internal.a
Diffstat (limited to 'src/lookup')
-rw-r--r--src/lookup/Makefile.am14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lookup/Makefile.am b/src/lookup/Makefile.am
index 55c1881..a6000cb 100644
--- a/src/lookup/Makefile.am
+++ b/src/lookup/Makefile.am
@@ -14,13 +14,13 @@
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-MAINTAINERCLEANFILES = Makefile.in
+MAINTAINERCLEANFILES = Makefile.in
-INCLUDES = -I$(top_srcdir)/src/include \
+AM_CPPFLAGS = -I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/storage \
@GLIB2_CFLAGS@
-noinst_HEADERS = lookup.h \
+noinst_HEADERS = lookup.h \
pinyin_lookup2.h \
phrase_lookup.h \
phonetic_lookup.h \
@@ -28,13 +28,11 @@ noinst_HEADERS = lookup.h \
phonetic_lookup_heap.h
-noinst_LTLIBRARIES = liblookup.la
+noinst_LIBRARIES = liblookup.a
-liblookup_la_CXXFLAGS = "-fPIC"
+liblookup_a_CXXFLAGS = "-fPIC"
-liblookup_la_LDFLAGS = -static
-
-liblookup_la_SOURCES = pinyin_lookup2.cpp \
+liblookup_a_SOURCES = pinyin_lookup2.cpp \
phrase_lookup.cpp \
lookup.cpp \
phonetic_lookup.cpp