mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-08 17:24:06 +00:00
Fix libqpdf.map and prevent future breakage
The build now checks to make sure libqpdf.map has the right library version number in it.
This commit is contained in:
parent
3388500327
commit
6247aaa57c
@ -1,4 +1,4 @@
|
||||
LIBQPDF_10 {
|
||||
LIBQPDF_17 {
|
||||
global:
|
||||
*;
|
||||
};
|
||||
|
@ -94,5 +94,23 @@ $(COBJS_libqpdf): libqpdf/$(OUTPUT_DIR)/%.$(LOBJ): libqpdf/%.c
|
||||
#
|
||||
# * Otherwise, increment REVISION
|
||||
|
||||
$(TARGETS_libqpdf): $(OBJS_libqpdf)
|
||||
$(call makelib,$(OBJS_libqpdf),$@,$(LDFLAGS),$(LIBS),17,0,0)
|
||||
CURRENT := 17
|
||||
REVISION := 0
|
||||
AGE := 0
|
||||
$(TARGETS_libqpdf): $(OBJS_libqpdf) libqpdf/$(OUTPUT_DIR)/checkmap_libqpdf-$(CURRENT).stamp
|
||||
$(call makelib,$(OBJS_libqpdf),$@,$(LDFLAGS),$(LIBS),$(CURRENT),$(REVISION),$(AGE))
|
||||
|
||||
libqpdf/$(OUTPUT_DIR)/checkmap_libqpdf-$(CURRENT).stamp: libqpdf.map
|
||||
@if [ $$(head -1 libqpdf.map | awk '{print $$1}') = LIBQPDF_$(CURRENT) ]; then \
|
||||
touch $@; \
|
||||
else \
|
||||
echo ''; \
|
||||
echo '****'; \
|
||||
echo libqpdf.map is out of date; \
|
||||
echo first line should contain LIBQPDF_$(CURRENT); \
|
||||
echo '****'; \
|
||||
echo ''; \
|
||||
rm -f $@; \
|
||||
false; \
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user