[vlc-commits] [Git][videolan/vlc][master] 2 commits: contrib: live555: use the CXXFLAGS variable when compiling
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Sep 4 10:34:18 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c4ea2e82 by Steve Lhomme at 2026-09-04T09:54:48+00:00
contrib: live555: use the CXXFLAGS variable when compiling
Regression from ad435562b7250478763377aeca64481d7e0b3b37.
- - - - -
4c1a8d5b by Steve Lhomme at 2026-09-04T09:54:48+00:00
contrib: live555: pass LIVE_EXTRA_CFLAGS as a (dynamic) variable
So it's not hardcoded in the makefile.
- - - - -
1 changed file:
- contrib/src/live555/rules.mak
Changes:
=====================================
contrib/src/live555/rules.mak
=====================================
@@ -67,13 +67,15 @@ live555: $(LIVE555_FILE) .sum-live555
chmod -R u+w $(UNPACK_DIR)
# Remove hardcoded cc, c++, ar variables
sed -e 's%C_COMPILER%#C_COMPILER%' -e 's%CPLUSPLUS_COMPILER%#CPLUSPLUS_COMPILER%' -e 's%LIBRARY_LINK%#LIBRARY_LINK%' -i.orig $(UNPACK_DIR)/config.$(LIVE_TARGET)
+ # Use CXXFLAGS when compiling C++ code
+ sed -e 's%CPLUSPLUS_FLAGS =%CPLUSPLUS_FLAGS = $$(CXXFLAGS)%' -i.orig $(UNPACK_DIR)/config.$(LIVE_TARGET)
# Remove hardcoded --std=c+20 on un supported compilers
ifndef HAVE_LIVE555_CPP20_ATOMIC_TEST
sed -e 's%-std=c++20% -DNO_STD_LIB=1%' -i.orig $(UNPACK_DIR)/config.$(LIVE_TARGET)
endif
# Add the Extra_CFLAGS to the config files
sed -i.orig \
- -e 's%^\(COMPILE_OPTS.*\)$$%\1 '"$(LIVE_EXTRA_CFLAGS)%" $(UNPACK_DIR)/config.$(LIVE_TARGET)
+ -e 's%COMPILE_OPTS =%COMPILE_OPTS = $$(EXTRA_CFLAGS)%' $(UNPACK_DIR)/config.$(LIVE_TARGET)
# We want 64bits offsets and PIC on Linux
sed -e 's%-D_FILE_OFFSET_BITS=64%-D_FILE_OFFSET_BITS=64\ -fPIC\ -DPIC%' -i.orig $(UNPACK_DIR)/config.linux
# Disable Locale for Solaris
@@ -104,7 +106,7 @@ endif
$(MOVE)
LIVE555_ENV := $(HOSTVARS) C_COMPILER=$(CC) CPLUSPLUS_COMPILER=$(CXX) LIBRARY_LINK="$(AR) cr " \
- PREFIX=$(PREFIX) DESTDIR= LIBDIR=$(PREFIX)/lib
+ PREFIX=$(PREFIX) DESTDIR= LIBDIR=$(PREFIX)/lib EXTRA_CFLAGS="$(LIVE_EXTRA_CFLAGS)"
.live555: BUILD_DIR=$<
.live555: live555
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6f5bd51f66360a803fab97b86b86da6460aa774a...4c1a8d5bbce2a0ed2dbda3010e37929a0e32191e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6f5bd51f66360a803fab97b86b86da6460aa774a...4c1a8d5bbce2a0ed2dbda3010e37929a0e32191e
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list