Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2020 08:31:02 +0000
From:      Nuno Teixeira <ed.arrakis@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Correct syntax for CFLAGS to change a -DCONFIG_FILE_PATH=...
Message-ID:  <CAFDf7ULLZB-NXBmxcb7G=gj_%2B9OszAUn4yyEdVEj67zKYf%2BFsA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

Recently upstream changed is example.c to have:

#ifndef CONFIG_FILE_PATH
#define CONFIG_FILE_PATH "./example.conf"
#endif

I found a way to change it in example port Makefile:

CFLAGS+= -DCONFIG_FILE_PATH=\\\"${LOCALBASE}/etc/example.conf\\\"

It works fine.

Am I doing the correct way and correct syntax? Those "\\\" ... "\\\" make
me some confusion.

Thanks,

Nuno Teixeira



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULLZB-NXBmxcb7G=gj_%2B9OszAUn4yyEdVEj67zKYf%2BFsA>