You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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.
This commit is contained in:
4
Makefile
4
Makefile
@@ -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
|
||||||
|
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
LIBAVCODEC_$MAJOR {
|
LIBAVCODEC_MAJOR {
|
||||||
global: av*;
|
global:
|
||||||
local: *;
|
av*;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
LIBAVDEVICE_$MAJOR {
|
LIBAVDEVICE_MAJOR {
|
||||||
global: avdevice_*;
|
global:
|
||||||
local: *;
|
avdevice_*;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
@@ -1,4 +1,7 @@
|
|||||||
LIBAVFILTER_$MAJOR {
|
LIBAVFILTER_MAJOR {
|
||||||
global: avfilter_*; av_*;
|
global:
|
||||||
local: *;
|
avfilter_*;
|
||||||
|
av_*;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
LIBAVFORMAT_$MAJOR {
|
LIBAVFORMAT_MAJOR {
|
||||||
global: av*;
|
global:
|
||||||
local: *;
|
av*;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
LIBAVRESAMPLE_$MAJOR {
|
LIBAVRESAMPLE_MAJOR {
|
||||||
global: av*;
|
global:
|
||||||
local: *;
|
av*;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
LIBAVUTIL_$MAJOR {
|
LIBAVUTIL_MAJOR {
|
||||||
global: av*;
|
global:
|
||||||
local: *;
|
av*;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
@@ -1,4 +1,7 @@
|
|||||||
LIBSWSCALE_$MAJOR {
|
LIBSWSCALE_MAJOR {
|
||||||
global: swscale_*; sws_*;
|
global:
|
||||||
local: *;
|
swscale_*;
|
||||||
|
sws_*;
|
||||||
|
local:
|
||||||
|
*;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user