[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using @bindir@ etc. in C headers

From: Florian Weimer
Subject: Re: Using @bindir@ etc. in C headers
Date: Sun, 07 Jun 2020 19:10:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

* Perry Hutchison:

> That being the case, what would be the use of capturing -- into a C
> header file, which is only used when building -- a variable setting
> passed to "make install"?

See the start of the thread.  Assuming one has to hard-code installation
locations (let's not get into a debate about that), one may have to
build the expansion of @bindir@ into the binary.  But that is usually
defined as ${exec_prefix}/bin, so something direct like

#define BINDIR "@bindir@"

does not work as expected.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]