Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options passed inconsistently to cc and ld #4142

Closed
vicuna opened this issue Oct 27, 2006 · 2 comments
Closed

options passed inconsistently to cc and ld #4142

vicuna opened this issue Oct 27, 2006 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 27, 2006

Original bug ID: 4142
Reporter: jcristau
Status: closed (set by @xavierleroy on 2011-12-17T11:34:00Z)
Resolution: not fixable
Priority: normal
Severity: minor
Version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: aballier smimram

Bug description

NATIVECCLINKOPTS is sometimes used as options to the C compiler (when using $(NATIVECC) $(NATIVECCLINKOPTS), for example), and sometimes as options to the linker. In Debian, we need to add --no-relax to the linker flags on the alpha architecture, which means passing -Wl,--no-relax to gcc, or --no-relax to ld.
The attached patch (against CVS HEAD) filters the $(NATIVECCLINKOPTS) flags to remove "-Wl," in the cases where ld is called directly, which makes the above possible.

File attachments

@vicuna
Copy link
Author

vicuna commented May 22, 2007

Comment author: aballier

Nice catch, this will help me a lot.
Here is an updated patch (against ocaml 3.10) that handles the -Wl,--foo,--bar syntax. It will expand it to --foo --bar when given to ld.

@vicuna
Copy link
Author

vicuna commented Dec 17, 2011

Comment author: @xavierleroy

The Alpha architecture is now really dead (it will be missed), and the next major release of OCaml will no longer offer an Alpha native-code generator. I am therefore closing this PR.

@vicuna vicuna closed this as completed Dec 17, 2011
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant