Browse Source

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.
tags/n3.2
Diego Biurrun 8 years ago
parent
commit
535a742c26
8 changed files with 38 additions and 24 deletions
  1. +1
    -3
      Makefile
  2. +5
    -3
      libavcodec/libavcodec.v
  3. +5
    -3
      libavdevice/libavdevice.v
  4. +6
    -3
      libavfilter/libavfilter.v
  5. +5
    -3
      libavformat/libavformat.v
  6. +5
    -3
      libavresample/libavresample.v
  7. +5
    -3
      libavutil/libavutil.v
  8. +6
    -3
      libswscale/libswscale.v

+ 1
- 3
Makefile View File

@@ -63,9 +63,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC)
$(Q)echo '#include "$*.h"' >$@

%.ver: %.v
$(M)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ | sed -e 's/:/:\
/' -e 's/; /;\
/g' > $@
$(M)sed 's/MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@

%.c %.h %.ver: TAG = GEN



+ 5
- 3
libavcodec/libavcodec.v View File

@@ -1,4 +1,6 @@
LIBAVCODEC_$MAJOR {
global: av*;
local: *;
LIBAVCODEC_MAJOR {
global:
av*;
local:
*;
};

+ 5
- 3
libavdevice/libavdevice.v View File

@@ -1,4 +1,6 @@
LIBAVDEVICE_$MAJOR {
global: avdevice_*;
local: *;
LIBAVDEVICE_MAJOR {
global:
avdevice_*;
local:
*;
};

+ 6
- 3
libavfilter/libavfilter.v View File

@@ -1,4 +1,7 @@
LIBAVFILTER_$MAJOR {
global: avfilter_*; av_*;
local: *;
LIBAVFILTER_MAJOR {
global:
avfilter_*;
av_*;
local:
*;
};

+ 5
- 3
libavformat/libavformat.v View File

@@ -1,4 +1,6 @@
LIBAVFORMAT_$MAJOR {
global: av*;
local: *;
LIBAVFORMAT_MAJOR {
global:
av*;
local:
*;
};

+ 5
- 3
libavresample/libavresample.v View File

@@ -1,4 +1,6 @@
LIBAVRESAMPLE_$MAJOR {
global: av*;
local: *;
LIBAVRESAMPLE_MAJOR {
global:
av*;
local:
*;
};

+ 5
- 3
libavutil/libavutil.v View File

@@ -1,4 +1,6 @@
LIBAVUTIL_$MAJOR {
global: av*;
local: *;
LIBAVUTIL_MAJOR {
global:
av*;
local:
*;
};

+ 6
- 3
libswscale/libswscale.v View File

@@ -1,4 +1,7 @@
LIBSWSCALE_$MAJOR {
global: swscale_*; sws_*;
local: *;
LIBSWSCALE_MAJOR {
global:
swscale_*;
sws_*;
local:
*;
};

Loading…
Cancel
Save