From dde449ee98cac885faad021838fde9bf0b9fc611 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Mon, 31 Jul 2023 18:28:25 +0200 Subject: [PATCH] bin: Makefile.am: use abs_top_* variables directly There's no need for an ad-hoc realpath call since autotools already provides the absolute path for those variables. --- bin/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/Makefile.am b/bin/Makefile.am index c62d6f27df..1186d98ccf 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -57,8 +57,8 @@ vlc_osx_LDADD = ../lib/libvlc.la vlc_osx_static_SOURCES = $(vlc_osx_SOURCES) vlc_osx_static_OBJCFLAGS = $(AM_OBJCFLAGS) \ - -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \ - -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \ + -DTOP_BUILDDIR=\"$(abs_top_builddir)\" \ + -DTOP_SRCDIR=\"$(abs_top_srcdir)\" \ $(NULL) vlc_osx_static_LDFLAGS = $(vlc_osx_LDFLAGS) -static vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../lib/.libs/" @@ -77,8 +77,8 @@ endif # vlc_static_SOURCES = $(vlc_SOURCES) vlc_static_CFLAGS = $(AM_CFLAGS) \ - -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \ - -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \ + -DTOP_BUILDDIR=\"$(abs_top_builddir)\" \ + -DTOP_SRCDIR=\"$(abs_top_srcdir)\" \ $(NULL) vlc_static_CPPFLAGS = $(vlc_CPPFLAGS) vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)