-
Notifications
You must be signed in to change notification settings - Fork 42
Support cross compiling #203
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
Merged
+379
−68
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ae241e2
get rid of stupid macos debug files
Un1q32 dd5304b
cross compiling
Un1q32 bffbe9f
support --host option
Un1q32 a3d33fc
make getcwd(NULL,0) check default to false, and provide variable to c…
Un1q32 491d9f4
add freebsd signum
Un1q32 3cd3ceb
add openbsd signum
Un1q32 87f8507
add --build stub option for autoconf compatability
Un1q32 fcbff8b
determine target OS from --host
silvanshade 86121d3
make $cross_compiling true/false
Un1q32 1623f99
change back some stuff with the getcwd check
Un1q32 b679f44
nit
Un1q32 264c42e
fix
Un1q32 4c9356b
update env vars in --help
Un1q32 363a663
update line
Un1q32 0acadd6
Merge remote-tracking branch 'other/target-os-from-host' into trunk
Un1q32 33894ca
style nits
Un1q32 6c28a8c
Update configure
Un1q32 aa5dad9
Update configure
Un1q32 a84326d
Update configure
Un1q32 5fcbb89
fix case where $OS was defined when cross compiling, signum wouldn't …
Un1q32 14593e0
Merge remote-tracking branch 'upstream/trunk' into trunk
Un1q32 671b7c0
improve error messages
Un1q32 768b695
better wording
Un1q32 7da82a6
make linux signums arch dependent
Un1q32 46e35ab
remove changes to signum stuff
Un1q32 5270f7a
i dont think the test is needed
Un1q32 cd9ee40
Generic cross-signum.h
magicant 3f18f1e
redirect stderr
Un1q32 92bef35
fix cross compiling detection
Un1q32 3eeaa86
Merge remote-tracking branch 'upstream/trunk' into trunk
Un1q32 3a9d1e5
update
Un1q32 febca70
update list
Un1q32 6f76387
a better approach to os detection
Un1q32 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| *.d | ||
| *.o | ||
| *.dSYM | ||
| Makefile | ||
| TAGS | ||
| tags | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ INSTALL_DIR = @INSTALL_DIR@ | |
| ARCHIVER = @ARCHIVER@ | ||
| DIRS = @DIRS@ | ||
| SOURCES = alias.c arith.c builtin.c exec.c expand.c hashtable.c history.c input.c job.c mail.c makesignum.c option.c parser.c path.c plist.c redir.c sig.c strbuf.c util.c variable.c xfnmatch.c xgetopt.c yash.c | ||
| HEADERS = alias.h arith.h builtin.h common.h exec.h expand.h hashtable.h history.h input.h job.h mail.h option.h parser.h path.h plist.h redir.h refcount.h sig.h siglist.h strbuf.h util.h variable.h xfnmatch.h xgetopt.h yash.h | ||
| HEADERS = alias.h arith.h builtin.h common.h cross-signum.h exec.h expand.h hashtable.h history.h input.h job.h mail.h option.h parser.h path.h plist.h redir.h refcount.h sig.h siglist.h strbuf.h util.h variable.h xfnmatch.h xgetopt.h yash.h | ||
| MAIN_OBJS = alias.o arith.o builtin.o exec.o expand.o hashtable.o input.o job.o mail.o option.o parser.o path.o plist.o redir.o sig.o strbuf.o util.o variable.o xfnmatch.o xgetopt.o yash.o | ||
| HISTORY_OBJS = history.o | ||
| BUILTINS_ARCHIVE = builtins/builtins.a | ||
|
|
@@ -80,7 +80,7 @@ makesignum: | |
| $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ [email protected] $(LDLIBS) | ||
| sig.o: signum.h | ||
| signum.h: makesignum | ||
| ./makesignum > $@ | ||
| ./makesignum > $@ 2> /dev/null || cp cross-signum.h $@ | ||
| variable.o yash.o: configm.h | ||
| configm.h: Makefile | ||
| -@printf 'creating %s...' '$@' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.