[aquaria] Patch to set data directory prefix at compile time

Andrew Church achurch+aquaria at achurch.org
Fri Jun 18 08:21:25 EDT 2010


>Hi guys,
>
>I've modified my data directory patch so that it can be committed
>upstream. You now specify the prefix at compile time with a flag, for
>example, -DBBGE_DATA_PREFIX="/usr/share/games".
[...]
>The layers of macros may seem odd but it seems you need that many to
>stringify it properly. Please correct it if you know a better way.

Are you sure you're passing the command-line parameter correctly?
It needs to be quoted, i.e. '-DBBGE_DATA_PREFIX="/usr/share/games"' or
-DBBGE_DATA_PREFIX=\"/usr/share/games\" .  That will let you use
BBGE_DATA_PREFIX as a string literal in the code without any extra
stringifying macros.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/


More information about the aquaria mailing list