Good morning, I try to submit a compiler option like export CFLAGS = -DUSE_X_DOM_SOCKET inside a spec file. From the wiki it seemed that RPM_OPT_FLAGS=\-DUSE_X_DOM_SOCKET\ would do the job, but that seems not the case. Whats the correct command? Thanks Axel
W dniu 13.12.2023 o 09:25, Axel Braun pisze:
Good morning,
I try to submit a compiler option like export CFLAGS = -DUSE_X_DOM_SOCKET inside a spec file.
From the wiki it seemed that RPM_OPT_FLAGS=\-DUSE_X_DOM_SOCKET\ would do the job, but that seems not the case.
Whats the correct command?
Thanks Axel
https://en.opensuse.org/openSUSE:Build_system_recipes says: export CFLAGS="%optflags -fwhatever" before %configure
On Wed, Dec 13, 2023 at 09:25:49AM +0100, Axel Braun wrote:
Good morning,
I try to submit a compiler option like export CFLAGS = -DUSE_X_DOM_SOCKET inside a spec file.
From the wiki it seemed that RPM_OPT_FLAGS=\-DUSE_X_DOM_SOCKET\ would do the job, but that seems not the case.
Whats the correct command?
really depends on what happens after3wards. export CFLAGS="%optflags -DUSE_X_DOM_SOCKET" before configure would work usually for configure stuff. Ciao, Marcus
Am Mittwoch, 13. Dezember 2023, 10:30:46 CET schrieb Marcus Meissner:
On Wed, Dec 13, 2023 at 09:25:49AM +0100, Axel Braun wrote:
Good morning,
I try to submit a compiler option like export CFLAGS = -DUSE_X_DOM_SOCKET inside a spec file.
From the wiki it seemed that RPM_OPT_FLAGS=\-DUSE_X_DOM_SOCKET\ would do the job, but that seems not the case.
Whats the correct command?
really depends on what happens after3wards.
export CFLAGS="%optflags -DUSE_X_DOM_SOCKET"
before configure would work usually for configure stuff.
Thank you Adam and Marcus, that fixed it! Cheers Axel
participants (3)
-
Adam Mizerski
-
Axel Braun
-
Marcus Meissner