build with lib moved to recoll subdir works for debian
This commit is contained in:
parent
48b2d8650a
commit
49ce79d6a6
@ -4,10 +4,10 @@ include $(depth)/mk/sysconf
|
||||
PROGS = recollindex
|
||||
SRCS = recollindex.cpp rclmonrcv.cpp rclmonprc.cpp
|
||||
|
||||
all: depend $(PROGS) librecoll
|
||||
all: depend librecoll $(PROGS)
|
||||
|
||||
RECOLLINDEX_OBJS= recollindex.o rclmonrcv.o rclmonprc.o
|
||||
recollindex : $(RECOLLINDEX_OBJS) librecoll
|
||||
recollindex : $(RECOLLINDEX_OBJS)
|
||||
$(CXX) $(ALL_CXXFLAGS) $(RECOLL_LDFLAGS) -o recollindex \
|
||||
$(RECOLLINDEX_OBJS) \
|
||||
$(BSTATIC) $(LIBRECOLL) $(LIBXAPIAN) $(LIBXAPIANSTATICEXTRA) \
|
||||
|
||||
@ -18,7 +18,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,-rpath=$(libdir) -Wl,-soname=$(LIBRECOLL) -o $(LIBRECOLL) $(OBJS) -lxapian -lz -lX11 -lpthread -ldl
|
||||
g++ -shared -Wl,--no-undefined -Wl,-soname=$(LIBRECOLL) -o $(LIBRECOLL) $(OBJS) -lxapian -lz -lX11 -lpthread -ldl
|
||||
rm -f librecoll.so
|
||||
ln -s $(LIBRECOLL) librecoll.so
|
||||
|
||||
|
||||
@ -131,7 +131,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,-rpath=\$(libdir) \
|
||||
g++ -shared -Wl,--no-undefined \
|
||||
-Wl,-soname=\$(LIBRECOLL) -o \$(LIBRECOLL) \$(OBJS) \
|
||||
-lxapian -lz -lX11 -lpthread -ldl
|
||||
rm -f librecoll.so
|
||||
|
||||
@ -7,7 +7,11 @@ top = os.path.join('..', '..')
|
||||
|
||||
library_dirs = [os.path.join(top, 'lib')]
|
||||
libraries = ['recoll']
|
||||
runtime_library_dirs = [os.path.join(os.environ['libdir'], 'recoll')]
|
||||
runtime_library_dirs = []
|
||||
try:
|
||||
runtime_library_dirs = [os.path.join(os.environ['libdir'], 'recoll')]
|
||||
except:
|
||||
pass
|
||||
|
||||
# Verify that the Recoll library was compiled with the PIC options
|
||||
localdefs = os.path.join(top, 'mk', 'localdefs')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user