forked from rust-lang/libc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rust-lang#17 from ids1024/make
Add build script for GNU make, which compiles (but doesn't work yet)
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
diff -ru make-4.2/config/config.sub make-4.2-new/config/config.sub | ||
--- make-4.2/config/config.sub 2016-05-22 06:27:16.000000000 -0700 | ||
+++ make-4.2-new/config/config.sub 2017-05-09 13:36:20.519908366 -0700 | ||
@@ -1376,7 +1376,7 @@ | ||
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | ||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | ||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | ||
- | -sym* | -kopensolaris* | -plan9* \ | ||
+ | -sym* | -kopensolaris* | -plan9* | -redox* \ | ||
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | ||
| -aos* | -aros* | -cloudabi* | -sortix* \ | ||
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | ||
diff -ru make-4.2/glob/glob.c make-4.2-new/glob/glob.c | ||
--- make-4.2/glob/glob.c 2013-10-20 10:14:38.000000000 -0700 | ||
+++ make-4.2-new/glob/glob.c 2017-05-09 14:14:14.319260425 -0700 | ||
@@ -625,9 +625,9 @@ | ||
#else | ||
const char *home_dir = getenv ("HOME"); | ||
#endif | ||
-# ifdef _AMIGA | ||
+# if 1 | ||
if (home_dir == NULL || home_dir[0] == '\0') | ||
- home_dir = "SYS:"; | ||
+ home_dir = "/home/user"; | ||
# else | ||
# ifdef WINDOWS32 | ||
if (home_dir == NULL || home_dir[0] == '\0') | ||
@@ -717,7 +717,7 @@ | ||
dirname = newp; | ||
} | ||
} | ||
-# if !defined _AMIGA && !defined WINDOWS32 && !defined VMS | ||
+# if 0 | ||
else | ||
{ | ||
char *end_name = strchr (dirname, '/'); | ||
diff -ru make-4.2/job.c make-4.2-new/job.c | ||
--- make-4.2/job.c 2016-05-21 13:22:32.000000000 -0700 | ||
+++ make-4.2-new/job.c 2017-05-09 13:52:47.806791042 -0700 | ||
@@ -1038,7 +1038,7 @@ | ||
void | ||
block_sigs (void) | ||
{ | ||
-#ifdef POSIX | ||
+#if 0 | ||
(void) sigprocmask (SIG_BLOCK, &fatal_signal_set, (sigset_t *) 0); | ||
#else | ||
# ifdef HAVE_SIGSETMASK | ||
@@ -1051,9 +1051,11 @@ | ||
void | ||
unblock_sigs (void) | ||
{ | ||
+/* | ||
sigset_t empty; | ||
sigemptyset (&empty); | ||
sigprocmask (SIG_SETMASK, &empty, (sigset_t *) 0); | ||
+*/ | ||
} | ||
#endif | ||
|
||
diff -ru make-4.2/read.c make-4.2-new/read.c | ||
--- make-4.2/read.c 2016-05-21 13:22:32.000000000 -0700 | ||
+++ make-4.2-new/read.c 2017-05-09 13:55:08.237484319 -0700 | ||
@@ -2937,7 +2937,7 @@ | ||
free (home_dir); | ||
home_dir = getenv ("HOME"); | ||
} | ||
-# if !defined(_AMIGA) && !defined(WINDOWS32) | ||
+# if 0 | ||
if (home_dir == 0 || home_dir[0] == '\0') | ||
{ | ||
char *logname = getlogin (); | ||
@@ -2958,7 +2958,7 @@ | ||
return new; | ||
} | ||
} | ||
-# if !defined(_AMIGA) && !defined(WINDOWS32) | ||
+# if 0 | ||
else | ||
{ | ||
struct passwd *pwent; |
This file contains 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
source environ.sh | ||
|
||
BROKEN | ||
|
||
SRC=http://ftp.gnu.org/gnu/make/make-4.2.tar.gz | ||
|
||
DIR=make-4.2 | ||
|
||
CONFIGURE_ARGS="CFLAGS=-DPOSIX --host=${HOST} --without-guile" | ||
configure_template $* |