Commit 106a02dd authored by Steve Lhomme's avatar Steve Lhomme

contrib: fix C/XXFLAGS overriding missing the $(PIC) flags

parent 82c0e8b1
......@@ -20,7 +20,7 @@ ebml: libebml-$(EBML_VERSION).tar.xz .sum-ebml
$(MOVE)
# libebml requires exceptions
EBML_CXXFLAGS := $(CXXFLAGS) -fexceptions -fvisibility=hidden
EBML_CXXFLAGS := $(CXXFLAGS) $(PIC) -fexceptions -fvisibility=hidden
.ebml: ebml toolchain.cmake
cd $< && $(HOSTVARS_PIC) CXXFLAGS="$(EBML_CXXFLAGS)" $(CMAKE) -DBUILD_SHARED_LIBS=OFF
......
......@@ -4,8 +4,8 @@ PLACEBO_VERSION := 0.2.1
PLACEBO_URL := https://github.com/haasn/libplacebo/archive/v$(PLACEBO_VERSION).tar.gz
PLACEBO_ARCHIVE = libplacebo-$(PLACEBO_VERSION).tar.gz
LIBPLACEBO_CFLAGS := $(CFLAGS)
LIBPLACEBO_CXXFLAGS := $(CXXFLAGS)
LIBPLACEBO_CFLAGS := $(CFLAGS) $(PIC)
LIBPLACEBO_CXXFLAGS := $(CXXFLAGS) $(PIC)
ifdef HAVE_WIN32
LIBPLACEBO_WIN32 = HAVE_WIN32=1
endif
......
......@@ -21,7 +21,7 @@ libmatroska: libmatroska-$(MATROSKA_VERSION).tar.xz .sum-matroska
$(call pkg_static,"libmatroska.pc.in")
$(MOVE)
MATROSKA_CXXFLAGS := $(CXXFLAGS) -fvisibility=hidden
MATROSKA_CXXFLAGS := $(CXXFLAGS) $(PIC) -fvisibility=hidden
.matroska: libmatroska toolchain.cmake
cd $< && $(HOSTVARS_PIC) CXXFLAGS="$(MATROSKA_CXXFLAGS)" $(CMAKE) -DBUILD_SHARED_LIBS=OFF
......
......@@ -11,8 +11,8 @@ ifeq ($(call need_pkg,"srt >= 1.2.2"),)
PKGS_FOUND += srt
endif
SRT_CFLAGS := $(CFLAGS)
SRT_CXXFLAGS := $(CXXFLAGS)
SRT_CFLAGS := $(CFLAGS) $(PIC)
SRT_CXXFLAGS := $(CXXFLAGS) $(PIC)
DEPS_srt = gnutls $(DEPS_gnutls)
ifdef HAVE_WIN32
DEPS_srt += pthreads $(DEPS_pthreads)
......
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