<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Rick and Jaroslav,<br>
<br>
I'm looking for ways to apply prefixes to llvm binaries, similar
to gcc's --program-prefix configure option.<br>
<br>
@Rick, were you able to commit a suitable version of your patch?<br>
<br>
@Jaroslav, you were asking the same question question last year -
have you solved it yourself?<br>
<br>
Thanks,<br>
- Dima.<br>
<br>
<br>
On 09/26/2012 11:14 PM, Rick Foos wrote:<br>
</div>
<blockquote cite="mid:50637022.4070609@codeaurora.org" type="cite">Adding
--program-prefix support to the autoconf build has been an
adventure.
<br>
<br>
A patch was applied. It worked on the usual llvm bots, but failed
on other bots with different configure options.
<br>
<br>
The patch was reverted as it broke on bots specifying --build,
--host, and --target in configure.
<br>
<br>
An option is proposed here to change the behavior of
program-prefix to it's normal behavior when AC_CANONICAL_TARGET is
not specified. Meaning --program-prefix can only be set from the
configure command line.
<br>
<br>
--- background
<br>
<br>
LLVM autoconf/configure.ac uses the AC_CANONICAL_TARGET.
<br>
<br>
This rule adds a test that can set program_prefix=target if
--program-prefix is not specified on the configure line.
<br>
test -n "$target_alias" &&
<br>
test "$program_prefix$program_suffix$program_transform_name" = \
<br>
NONENONEs,x,x, &&
<br>
program_prefix=${target_alias}-[]dnl
<br>
<br>
./configure --target=blah
<br>
results in
<br>
program_prefix=blah
<br>
<br>
--- Proposed patch
<br>
<br>
The original patch has been updated to ignore the test added by
AC_CANONICAL_TARGET. Program prefix can only be set from the
command line of configure.
<br>
<br>
./configure --target=blah
<br>
results in
<br>
program_prefix=
<br>
<br>
./configure --target=blah --program-prefix=blah
<br>
results in
<br>
program_prefix=blah
<br>
<br>
The attached patches reflect the code to do this change.
<br>
<br>
-rick
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>