From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 11 Oct 2022 20:10:53 +0000 (+0100) Subject: Correct a hacky and incorrect kludge so that the Makefile works on Linux and FreeBSD. X-Git-Tag: 4.1-rc3~1^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11495fd76015037d3f7fb84de7b3df24f0b1d991;p=thirdparty%2Fshairport-sync.git Correct a hacky and incorrect kludge so that the Makefile works on Linux and FreeBSD. --- diff --git a/Makefile.am b/Makefile.am index 0d3ec66f..bc1393d4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,15 +32,15 @@ if BUILD_FOR_OPENBSD AM_CXXFLAGS = -I/usr/local/include -Wno-multichar -Wall -Wextra -Wno-clobbered -Wno-psabi -pthread -DSYSCONFDIR=\"$(sysconfdir)\" AM_CFLAGS = -Wno-multichar -Wall -Wextra -pthread -DSYSCONFDIR=\"$(sysconfdir)\" else - AM_CXXFLAGS = -fno-common -Wno-multichar -Wall -Wextra -Wno-clobbered -Wno-psabi -pthread -DSYSCONFDIR=\"$(sysconfdir)\" - AM_CFLAGS = -fno-common -Wno-multichar -Wall -Wextra -Wno-clobbered -Wno-psabi -pthread -DSYSCONFDIR=\"$(sysconfdir)\" + AM_CXXFLAGS = -I$(srcdir) -fno-common -Wno-multichar -Wall -Wextra -Wno-clobbered -Wno-psabi -pthread -DSYSCONFDIR=\"$(sysconfdir)\" + AM_CFLAGS = -I$(srcdir) -fno-common -Wno-multichar -Wall -Wextra -Wno-clobbered -Wno-psabi -pthread -DSYSCONFDIR=\"$(sysconfdir)\" endif endif endif # include information generated by 'git describe --tags --dirty' if requested if USE_GIT_VERSION -$(top_srcdir)/common.c: gitversion.h +common.c: gitversion.h gitversion.h: .git/index printf "// Do not edit!\n" > gitversion.h printf "// This file is automatically generated by 'git describe --tags --dirty', if available.\n" >> gitversion.h