Skip to content

Commit

Permalink
build: remove --enable-raise-major configure option
Browse files Browse the repository at this point in the history
It's not used by anything, has dubious usefulness, the reasons for which
it was introduced are no longer valid, and only serves to add complexity
to the build system.

Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed May 18, 2017
1 parent 5ff31ba commit 3e295e6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ $(1) :=
$(1)-yes :=
endef

ifdef CONFIG_RAISE_MAJOR
RAISE_MAJOR = 100
else
RAISE_MAJOR = 0
endif

define DOSUBDIR
$(foreach V,$(SUBDIR_VARS),$(eval $(call RESET,$(V))))
SUBDIR := $(1)/
Expand Down
2 changes: 0 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ Configuration options:
--enable-gray enable full grayscale support (slower color)
--disable-swscale-alpha disable alpha channel support in swscale
--disable-all disable building components, libraries and programs
--enable-raise-major increase major version numbers in sonames [no]
Program options:
--disable-programs do not build command line programs
Expand Down Expand Up @@ -1692,7 +1691,6 @@ CONFIG_LIST="
neon_clobber_test
ossfuzz
pic
raise_major
thumb
valgrind_backtrace
xmm_clobber_test
Expand Down
2 changes: 1 addition & 1 deletion ffbuild/library.mak
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $(TESTPROGS) $(TOOLS): %$(EXESUF): %.o
$$(LD) $(LDFLAGS) $(LDEXEFLAGS) $$(LD_O) $$(filter %.o,$$^) $$(THISLIB) $(FFEXTRALIBS) $$(ELIBS)

$(SUBDIR)lib$(NAME).version: $(SUBDIR)version.h | $(SUBDIR)
$$(M) $$(SRC_PATH)/ffbuild/libversion.sh $(NAME) $$< $(RAISE_MAJOR) > $$@
$$(M) $$(SRC_PATH)/ffbuild/libversion.sh $(NAME) $$< > $$@

$(SUBDIR)lib$(FULLNAME).pc: $(SUBDIR)version.h | $(SUBDIR)
$$(M) $$(SRC_PATH)/ffbuild/pkgconfig_generate.sh $(NAME) "$(DESC)"
Expand Down
2 changes: 0 additions & 2 deletions ffbuild/libversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ toupper(){
name=lib$1
ucname=$(toupper ${name})
file=$2
raise_major=$3

eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
eval ${ucname}_VERSION_MAJOR=$((${ucname}_VERSION_MAJOR+${raise_major}))
eval ${ucname}_VERSION=\$${ucname}_VERSION_MAJOR.\$${ucname}_VERSION_MINOR.\$${ucname}_VERSION_MICRO
eval echo "${name}_VERSION=\$${ucname}_VERSION"
eval echo "${name}_VERSION_MAJOR=\$${ucname}_VERSION_MAJOR"
Expand Down

0 comments on commit 3e295e6

Please sign in to comment.