Commit Graph

51 Commits

Author SHA1 Message Date
Russ Cox ace7bcb75b INSTALL: fix $PLAN9 in message 2024-04-06 11:14:36 -04:00
Sören Tempel f7b572818c INSTALL: Always set PLAN9_TARGET environment variable
That is, not only when -r was given. This allows using this veriable in
mkfiles across the code base.
2022-07-27 10:15:51 -04:00
Russ Cox bab7b73b85 INSTALL: build arm64 binaries on arm64 Macs
If there is any x86 binary in the chain of parent processes from
the current one, then uname -m prints x86_64 and clang
defaults to building x86_64 binaries.

Detect arm64 using the kernel version and force building
an arm64 toolchain instead of perpetuating x86.

This is particularly important when the user shell is rc,
which has been built for x86, because then rebuilding
under rc continues to use x86.
2022-01-24 13:47:27 -05:00
Russ Cox 99dee78c2d all: remove $OBJTYPE from build
Now that we assume pthreads, the only assembly
left is in libmp and libsec.
We only ever added assembly for 386.
The portable C code is fine for plan9port.
2020-12-30 07:53:28 -05:00
Russ Cox 06687f70ba INSTALL: build mk all the time
If mk gets into a bad state, it's not obvious that you can
remove the binary to force the rebuild. Also, not rebuilding
means that bugs in mkmk.sh are not noticed.
Just rebuild from scratch every time. It doesn't take too long
compared to the rest of INSTALL.
2020-05-17 20:15:41 -04:00
Russ Cox cb8f735786 all: remove Linux 2.4 vs 2.6 detection
Linux 2.4 is dead.
(The libthread code hasn't worked for Linux 2.4 for a long time.)
2020-01-19 23:04:58 -05:00
Russ Cox 952a9afae0 INSTALL: do not rm config after setting it up
Fixes #334.
2020-01-13 23:38:04 -05:00
Leonid Bobrov cf6b778799 INSTALL, 9c, 9l: improve handling of *BSD (#302) 2020-01-07 14:51:42 -05:00
Xiao-Yong 2607cc565e INSTALL: use cc to check for fontsrv on non-Darwin (#203)
FreeBSD 11.2 by default does not have gcc.
2018-11-16 10:14:49 -05:00
Russ Cox ad2d49503b INSTALL: set $NPROC on macOS
My MacBook Pro has hw.ncpu=12, so set NPROC=12.
Speeds up INSTALL dramatically.
Should probably add similar code to other OSes.

Also silence rio warning from earlier commit.
2018-11-16 00:03:24 -05:00
Russ Cox fe92b4a0b1 INSTALL: set CC9 on macOS to use xcrun clang
Using plain 'clang' does not work well for the new devdraw on macOS 10.14.
But 'xcrun --sdk macosx clang' does work, for reasons no one understands.
Hopefully this will be OK on all macOS systems.
2018-11-15 20:39:35 -05:00
Francis Conti 9c38253d1d INSTALL: fix compiler detection on FreeBSD+clang (#177) 2018-11-14 00:23:40 -05:00
Russ Cox a399388593 all: update site from swtch.com to 9fans.github.io 2017-09-01 13:25:20 -04:00
Gleydson Soares 8ee5da7cf7 INSTALL: append /usr/X11R6/include and /usr/X11R6/include/freetype2 to
X11 headers detection, so that enable fontsrv build on OpenBSD.

Change-Id: I2f3f766339a9f8beed647dfbb19a588d1825732a
Reviewed-on: https://plan9port-review.googlesource.com/1290
Reviewed-by: Russ Cox <rsc@google.com>
2015-11-10 03:30:25 +00:00
David du Colombier 734ca6356b INSTALL: fix path of quote1 and quote2
Thanks to Akshat Kumar for reporting this issue.

LGTM=seed, rsc
R=rsc, seed
https://codereview.appspot.com/173770043
2014-11-07 22:52:31 +01:00
Russ Cox fbe3f344c1 build: rename " and "" to quote1 and quote2 for hg
They'll be copied back during installation
but then hg doesn't have to create those files
on systems that have trouble with them.

TBR=rsc
https://codereview.appspot.com/105800043
2014-06-03 14:29:06 -04:00
Shenghou Ma e78ed7a67b INSTALL: fix architecture detection on Solaris.
And uses gcc for i386 and x86_64.

LGTM=rsc
R=rsc
https://codereview.appspot.com/69860044
2014-03-05 16:43:20 -05:00
Shenghou Ma 20035ed43c all: DragonFly port.
Fix compilation problems, libdraw still doesn't work right yet.

LGTM=rsc
R=rsc
https://codereview.appspot.com/67820046
2014-02-27 23:17:47 -05:00
Russ Cox baf127ad04 INSTALL: diagnose missing gcc on Darwin
TBR=rsc
https://codereview.appspot.com/55700043
2014-01-22 11:23:19 -05:00
Martin Neubauer dad9d0ac8f fontserv: fix build on FreeBSD 9.1
R=rsc
https://codereview.appspot.com/7095050
2013-01-30 17:45:28 -08:00
Russ Cox cb71c0bdc4 fontsrv: only build when the pieces are there 2012-12-18 07:22:19 -08:00
Christian Kellermann 1a512ec048 fontsrv: fix build on OpenBSD 5.2
R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/6850108
2012-12-11 12:45:45 -05:00
Russ Cox 813b3eea8b OS X PowerPC fixes (thanks Cameron Kaiser) 2011-10-23 17:55:23 -04:00
Russ Cox c49b45ed3e INSTALL: use mk -k 2011-10-03 16:08:14 -04:00
Russ Cox fc567f476a build: OS X 64-bit build
R=rsc
http://codereview.appspot.com/4838047
2011-08-02 14:28:04 -04:00
Peter Saveliev 89ec3cde42 INSTALL: add -r flag
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4526096
2011-06-02 09:28:23 -04:00
Arvindh Rajesh Tamilmani 80c90f271e fix build on SunOS (Sparc)
R=rsc
CC=codebot
http://codereview.appspot.com/882044
2010-04-09 15:28:16 -07:00
Russ Cox 1d534ed6ce docs: document bitbucket servers, codereview(1)
http://codereview.appspot.com/98068
2009-07-29 11:30:25 -04:00
Russ Cox 4fbb40ce7b INSTALL: ignore gcc Configured with line 2008-12-06 15:53:13 -08:00
Russ Cox b893932e4d INSTALL: print compiler info 2008-05-10 13:34:32 -04:00
rsc 8f8ef0c6a9 space after -v for OS X (andrey) 2006-07-24 19:05:01 +00:00
rsc 32a580f43c show current directory 2006-07-23 14:36:05 +00:00
rsc df29f2cef6 split in half 2005-12-30 18:52:40 +00:00
rsc 6637b803f6 Make install less chatty, more useful. 2005-11-28 21:14:44 +00:00
rsc 7495a5292d summarize during install 2005-11-26 15:39:46 +00:00
rsc 905502613a try to use system utils during ./INSTALL 2005-07-22 18:44:46 +00:00
rsc 52fdc1a547 use LOCAL.config 2005-02-02 22:08:10 +00:00
rsc 8327d41981 redirect debugging output of isnptl 2005-01-23 01:55:42 +00:00
rsc 7ca705927e use better versions 2005-01-21 20:21:12 +00:00
rsc 3b1a43f3df run LOCAL.INSTALL 2005-01-18 20:17:42 +00:00
rsc d338028eeb important to -lpthread 2005-01-17 21:38:20 +00:00
rsc b04c42e9eb nptl dependencies 2005-01-17 21:32:55 +00:00
rsc 7a2c88509b allow config to override kernel version 2005-01-17 21:30:05 +00:00
rsc 5a2171b2e8 use install.log 2005-01-14 18:26:21 +00:00
rsc 95d4663867 log everything 2005-01-14 18:02:48 +00:00
rsc 722c34e310 better job at cleaning 2005-01-14 18:00:26 +00:00
rsc 5319e9b8fb build man pages 2005-01-14 17:58:09 +00:00
rsc 0070bb81c4 tweaks 2005-01-07 23:11:02 +00:00
rsc b4a659b6cf clean up when finished. 2004-04-19 23:03:46 +00:00
rsc 8f314994db More Mac tweaks. 2004-03-02 17:34:15 +00:00