freebsd shlib build fixes
This commit is contained in:
parent
4c3873798d
commit
e5543b144f
@ -117,7 +117,7 @@
|
||||
|
||||
/* The __FreeBSD_kernel__ thing is for debian/kfreebsd. */
|
||||
#if _FILE_OFFSET_BITS == 64 || defined(__APPLE__) || defined(__OpenBSD__) ||\
|
||||
defined(__FreeBSD_kernel__)
|
||||
defined(__FreeBSD_kernel__) || (defined(__FreeBSD__) && __FreeBSD__ >= 9)
|
||||
#define OFFTPC "%lld"
|
||||
#else
|
||||
#define OFFTPC "%ld"
|
||||
|
||||
@ -19,7 +19,7 @@ librecoll.a : $(DEPS) $(OBJS)
|
||||
# no effort whatsoever to maintain any kind of ABI compat in this lib. Only
|
||||
# programs or modules from the same Recoll release can be compatible.
|
||||
$(LIBRECOLL): $(DEPS) $(OBJS)
|
||||
g++ -shared -Wl,--no-undefined -Wl,-soname=$(LIBRECOLL) -o $(LIBRECOLL) $(OBJS) -lxapian -lz -lX11 -lpthread -ldl
|
||||
g++ -shared -Wl,--no-undefined -Wl,--warn-unresolved-symbols -Wl,-soname=$(LIBRECOLL) -o $(LIBRECOLL) $(OBJS) $(LIBXAPIAN) $(LIBICONV) $(X_LIBX11) $(LIBSYS)
|
||||
rm -f librecoll.so
|
||||
ln -s $(LIBRECOLL) librecoll.so
|
||||
|
||||
|
||||
@ -139,9 +139,9 @@ librecoll.a : \$(DEPS) \$(OBJS)
|
||||
# no effort whatsoever to maintain any kind of ABI compat in this lib. Only
|
||||
# programs or modules from the same Recoll release can be compatible.
|
||||
\$(LIBRECOLL): \$(DEPS) \$(OBJS)
|
||||
g++ -shared -Wl,--no-undefined \
|
||||
g++ -shared -Wl,--no-undefined -Wl,--warn-unresolved-symbols \
|
||||
-Wl,-soname=\$(LIBRECOLL) -o \$(LIBRECOLL) \$(OBJS) \
|
||||
-lxapian -lz -lX11 -lpthread -ldl
|
||||
\$(LIBXAPIAN) \$(LIBICONV) \$(X_LIBX11) \$(LIBSYS)
|
||||
rm -f librecoll.so
|
||||
ln -s \$(LIBRECOLL) librecoll.so
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user