diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-14 23:02:47 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-15 20:40:50 +0100 |
commit | 59765f508225998d8a73b1da8380ff06b4a6b79c (patch) | |
tree | 9397850a4ab5bac51ec373558722c45be4fe7258 /patches/nc110.local.patch | |
parent | 8739dbe67d82f90d1c3b63a8d07af291c4ace600 (diff) | |
download | midipix_build-59765f508225998d8a73b1da8380ff06b4a6b79c.tar.bz2 midipix_build-59765f508225998d8a73b1da8380ff06b4a6b79c.tar.xz |
1) Replaces the SysV-style build script link mechanism w/ build {,meta-}targets,
2) splits build.{subr,sh}} into subr/{build,pkg,rtl}.subr and build.sh,
3) replaces {997.strip,998.midipix_sh,999.tarballs}.build with subr/{strip,tarball}.subr,
4) moves patches to patches/, vars files to vars/, and everything else to etc/,
5) renames `Create `Midipix mintty shell' shortcut.vbs' to midipix_shortcut.vbs,
6) fixes a Weechat configure issue, and
7) updates etc/{build.usage,README}.
Diffstat (limited to 'patches/nc110.local.patch')
-rw-r--r-- | patches/nc110.local.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/patches/nc110.local.patch b/patches/nc110.local.patch new file mode 100644 index 00000000..fcf63536 --- /dev/null +++ b/patches/nc110.local.patch @@ -0,0 +1,56 @@ +--- nc110/Makefile.orig 1996-03-20 03:16:06.000000000 +0000 ++++ nc110/Makefile 2016-09-11 20:44:21.896119203 +0000 +@@ -9,13 +9,13 @@ + # pick gcc if you'd rather , and/or do -g instead of -O if debugging + # debugging + # DFLAGS = -DTEST -DDEBUG +-CFLAGS = -O ++CFLAGS = -O $(CFLAGS_EXTRA) + XFLAGS = # xtra cflags, set by systype targets + XLIBS = # xtra libs if necessary? + # -Bstatic for sunos, -static for gcc, etc. You want this, trust me. + STATIC = +-CC = cc $(CFLAGS) +-LD = $(CC) -s # linker; defaults to stripped executables ++CC = cc ${CFLAGS} ++LD = $(CC) $(LDFLAGS_DEBUG) # linker; defaults to stripped executables + o = o # object extension + + ALL = nc +@@ -28,7 +28,7 @@ + ### HARD TARGETS + + nc: netcat.c +- $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS) ++ $(LD) $(CFLAGS) $(LDFLAGS) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS) + + nc-dos: + @echo "DOS?! Maybe someday, but not now" +@@ -109,6 +109,10 @@ + next: + make -e $(ALL) $(MFLAGS) XFLAGS='-DNEXT' STATIC=-Bstatic + ++# midipix ++midipix: ++ make -e $(ALL) $(MFLAGS) XFLAGS='-DLINUX' STATIC= ++ + # start with this for a new architecture, and see what breaks. + generic: + make -e $(ALL) $(MFLAGS) XFLAGS='-DGENERIC' STATIC= +--- nc110/generic.h.orig 1996-02-18 01:36:43.000000000 +0000 ++++ nc110/generic.h 2016-06-15 18:44:06.379382216 +0000 +@@ -360,6 +360,14 @@ + #undef HAVE_SELECT_X + #endif /* NeXTSTEP 3.2 motorola */ + ++/* midipix */ ++#ifdef MIDIPIX ++#undef UTMPX ++#undef HAVE_SYSINFO ++#undef HAVE_SELECT_H ++#undef HAVE_TTYENT_H ++#endif /* midipix */ ++ + /* Make some "generic" assumptions if all else fails */ + #ifdef GENERIC + #undef HAVE_FLOCK |