use static linking on macosx
This commit is contained in:
parent
9b55eb1cda
commit
5f61c2edff
7
src/configure
vendored
7
src/configure
vendored
@ -4341,9 +4341,10 @@ _ACEOF
|
||||
fi
|
||||
fi
|
||||
|
||||
# Enable use of file extended attributes.
|
||||
# Not by default as extended attributes are little used for now, and
|
||||
# looking for them is not completely trivial
|
||||
# Enable use of file extended attributes. Not by default as extended
|
||||
# attributes are little used for now, and looking for them is not
|
||||
# completely trivial: we have to use ctime instead of mtime to detect
|
||||
# changes.
|
||||
# Check whether --enable-xattr was given.
|
||||
if test "${enable_xattr+set}" = set; then :
|
||||
enableval=$enable_xattr; xattrEnabled=$enableval
|
||||
|
||||
@ -3,7 +3,8 @@ depth = ..
|
||||
include $(depth)/mk/sysconf
|
||||
|
||||
LIBRECOLL=librecoll.so.$(RCLLIBVERSION)
|
||||
LIBS = librecoll.a $(LIBRECOLL)
|
||||
LIBS = librecoll.a
|
||||
@NODYNLIB@LIBS = librecoll.a $(LIBRECOLL)
|
||||
|
||||
all: $(LIBS)
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
mk=Makefile
|
||||
depth=${depth:-..}
|
||||
sys=`uname`
|
||||
|
||||
SRC_CPP="\
|
||||
${depth}/aspell/rclaspell.cpp \
|
||||
@ -110,13 +111,18 @@ defs=\$\(depth\)/mk/localdefs
|
||||
|
||||
test -f $mk && chmod +w $mk
|
||||
|
||||
if test $sys = "Darwin";then
|
||||
NODYNLIB='#'
|
||||
fi
|
||||
|
||||
cat > $mk <<EOF
|
||||
# DONT EDIT BY HAND: created by script mkMake
|
||||
depth = ${depth}
|
||||
include \$(depth)/mk/sysconf
|
||||
|
||||
LIBRECOLL=librecoll.so.\$(RCLLIBVERSION)
|
||||
LIBS = librecoll.a \$(LIBRECOLL)
|
||||
LIBS = librecoll.a
|
||||
${NODYNLIB}LIBS = librecoll.a \$(LIBRECOLL)
|
||||
|
||||
all: \$(LIBS)
|
||||
|
||||
|
||||
@ -3,5 +3,7 @@ include $(depth)/mk/localdefs
|
||||
|
||||
ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS)
|
||||
|
||||
LIBRECOLL = -L$(depth)/lib -lrecoll
|
||||
|
||||
RANLIB = ranlib
|
||||
LIBSYS =
|
||||
|
||||
@ -15,7 +15,7 @@ COMMONCXXFLAGS = -I. \
|
||||
# the sys file or localdefs
|
||||
SYSPICFLAGS = -fPIC -DPIC
|
||||
|
||||
LIBRECOLL = -L $(depth)/lib -lrecoll -Wl,-rpath=$(libdir)/recoll
|
||||
LIBRECOLL = -L$(depth)/lib -lrecoll -Wl,-rpath=$(libdir)/recoll
|
||||
|
||||
RANLIB = test -f
|
||||
AR=ar
|
||||
|
||||
@ -83,8 +83,13 @@ unix {
|
||||
# Note: libdir may be substituted with sthing like $(exec_prefix)/lib
|
||||
# at this point and will go as such in the Makefile. Expansion will be
|
||||
# completed at make time.
|
||||
LIBS += $(BSTATIC) -L../lib -lrecoll -Wl,-rpath=@libdir@/recoll \
|
||||
@LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \
|
||||
LIBS += $(BSTATIC) -L../lib -lrecoll
|
||||
|
||||
!macx {
|
||||
LIBS += -Wl,-rpath=@libdir@/recoll
|
||||
}
|
||||
|
||||
LIBS += @LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \
|
||||
@LIBICONV@ $(BDYNAMIC) @LIBQZEITGEIST@ -lz
|
||||
|
||||
INCLUDEPATH += ../common ../index ../internfile ../query ../unac \
|
||||
@ -103,6 +108,10 @@ contains( UNAME, SunOS ) {
|
||||
LIBS += -ldl
|
||||
}
|
||||
|
||||
macx {
|
||||
ICON = images/recoll.icns
|
||||
}
|
||||
|
||||
TRANSLATIONS = \
|
||||
i18n/recoll_cs.ts \
|
||||
i18n/recoll_de.ts \
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
6 results
|
||||
[file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.log.gz] [badsufffilename.log.gz] 19 bytes
|
||||
[file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.md5] [badsufffilename.md5] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tar.bz2] [badsufffilename.tar.bz2] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tar.gz] [badsufffilename.tar.gz] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tbz] [badsufffilename.tbz] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tgz] [badsufffilename.tgz] 19 bytes
|
||||
[file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.log.gz] [badsufffilename.log.gz] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tbz] [badsufffilename.tbz] 19 bytes
|
||||
[file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.md5] [badsufffilename.md5] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tar.gz] [badsufffilename.tar.gz] 19 bytes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user