Skip to content

fix: On some Linux, cc expects the input argument to come before other options#4

Merged
Hywan merged 5 commits intomasterfrom
fix-linux-shared-object
Nov 16, 2020
Merged

fix: On some Linux, cc expects the input argument to come before other options#4
Hywan merged 5 commits intomasterfrom
fix-linux-shared-object

Conversation

@Hywan
Copy link
Copy Markdown
Owner

@Hywan Hywan commented Nov 13, 2020

For instance, the following will fail:

cc -I<…> -L<…> -Wl,l<…> -o test test.c

But the following will work:

cc test.c -I<…> -L<…> -Wl,l<…> -o test

This patch puts the input path first, before everything.

…her options.

For instance, the following will fail:

```
cc -I<…> -L<…> -Wl,l<…> -o test test.c
```

But the following will work:

```
cc test.c -I<…> -L<…> -Wl,l<…> -o test
```

This patch puts the input path first, before everything.
@Hywan Hywan merged commit fab8151 into master Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant