Take back -DPREFIX compiler flag when switched to meson

This is a continuation of https://github.com/gentoo/gentoo/pull/31017

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
This commit is contained in:
Yiyang Wu 2023-11-25 17:55:51 +08:00
parent f9bbbfbf4b
commit 877c84f3b6
No known key found for this signature in database
GPG Key ID: D14B801691FD5D4B

View File

@ -205,6 +205,10 @@ if cc.has_function('strlcpy', prefix: '#define _GNU_SOURCE\n#include <string.h>'
add_project_arguments('-DHAVE_STRLCPY', language: 'c')
endif
if rootprefix != ''
add_project_arguments('-DPREFIX', language: 'c')
endif
incdir = include_directories('src/shared')
einfo_incdir = include_directories('src/libeinfo')
rc_incdir = include_directories('src/librc')