<linkerflag> is a hack to fix some peculiarities of mingw. It should go away
eventually so we shouldn't add more code which depend on it.
<linkerfile base="lowalign">ldscript</linkerfile>
is enough because the MinGW rbuild backend can add the rest of the information.
Maybe:
<linkerscript base="lowalign">ldscript</linkerscript>
since it makes it more clear that it is a linker script.
Casper
-----Original Message-----
From: ros-dev-bounces(a)reactos.org [mailto:ros-dev-bounces@reactos.org] On Behalf Of Royce
Mitchell
III
Sent: 23. oktober 2005 02:31
To: ReactOS Development List
Subject: Re: [ros-dev] rbuild question
This would require a semi-major feature addition to rbuild, but
shouldn't be too difficult.
Here's an idea of how we could do it that would give some flexibility:
<linkerflag>-Wl,-T,%lowalign.path.src%/ldscript</linkerflag>
and you could also do this (referring to the current module):
<linkerflag>-Wl,-T,%module.path.src%/ldscript</linkerflag>
Here's another way to do it that would be more consistent with the
current design:
<linkerfile base="lowalign" prefix="-Wl,-T,"
postfix="">ldscript</linkerfile>
Thoughts anyone?
Hartmut Birr wrote:
Hi,
for a sample program, I have to specify a linker script file. I'm
using the following xml-file:
<module name="lowalign" type="win32cui"
installbase="bin"
installname="lowalign.exe">
<include base="lowalign">.</include>
<define name="__USE_W32API" />
<file>lowalign.c</file>
<linkerflag>-Wl,-T,modules/myapps/lowalign/ldscript</linkerflag>
<linkerflag>-Wl,--file-alignment=0x80</linkerflag>
<linkerflag>-Wl,--section-alignment=0x80</linkerflag>
</module>
I would like it if I can remove the absolute path from the linker
script file. Any ideas?
- Hartmut
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev
.
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev