Commit 535a742c authored by Diego Biurrun's avatar Diego Biurrun

build: Change structure of the linker version script templates

Split version files into one line per symbol/directive to allow compatibility
with the Solaris linker without preprocessing and eliminate $ from version file
templates to simplify the postprocessing shell command.
parent 5b1b495c
...@@ -63,9 +63,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC) ...@@ -63,9 +63,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC)
$(Q)echo '#include "$*.h"' >$@ $(Q)echo '#include "$*.h"' >$@
%.ver: %.v %.ver: %.v
$(M)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ | sed -e 's/:/:\ $(M)sed 's/MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@
/' -e 's/; /;\
/g' > $@
%.c %.h %.ver: TAG = GEN %.c %.h %.ver: TAG = GEN
......
LIBAVCODEC_$MAJOR { LIBAVCODEC_MAJOR {
global: av*; global:
local: *; av*;
local:
*;
}; };
LIBAVDEVICE_$MAJOR { LIBAVDEVICE_MAJOR {
global: avdevice_*; global:
local: *; avdevice_*;
local:
*;
}; };
LIBAVFILTER_$MAJOR { LIBAVFILTER_MAJOR {
global: avfilter_*; av_*; global:
local: *; avfilter_*;
av_*;
local:
*;
}; };
LIBAVFORMAT_$MAJOR { LIBAVFORMAT_MAJOR {
global: av*; global:
local: *; av*;
local:
*;
}; };
LIBAVRESAMPLE_$MAJOR { LIBAVRESAMPLE_MAJOR {
global: av*; global:
local: *; av*;
local:
*;
}; };
LIBAVUTIL_$MAJOR { LIBAVUTIL_MAJOR {
global: av*; global:
local: *; av*;
local:
*;
}; };
LIBSWSCALE_$MAJOR { LIBSWSCALE_MAJOR {
global: swscale_*; sws_*; global:
local: *; swscale_*;
sws_*;
local:
*;
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment