diff options
author | Benjamin Morrison <ben@gbmor.org> | 2022-07-13 00:15:49 -0400 |
---|---|---|
committer | Benjamin Morrison <ben@gbmor.org> | 2022-07-13 00:15:49 -0400 |
commit | 5c2b13ddebd9cceb062b1499e917366d7d0f84da (patch) | |
tree | 09ba9829c2fcbe0f31f9cf188a9dd83dc0ddcd6a /pages | |
parent | 01e205bbb660d25e7dcdff80435834a53ffb6c99 (diff) | |
download | wiki-5c2b13ddebd9cceb062b1499e917366d7d0f84da.tar.gz |
update gcc page
Diffstat (limited to 'pages')
-rw-r--r-- | pages/gcc.md | 43 | ||||
-rw-r--r-- | pages/gcc8.md | 31 |
2 files changed, 43 insertions, 31 deletions
diff --git a/pages/gcc.md b/pages/gcc.md new file mode 100644 index 0000000..5b9f229 --- /dev/null +++ b/pages/gcc.md @@ -0,0 +1,43 @@ +<!-- +title: gcc and GNUstep +description: Information on using recent gcc versions +author: gbmor +--> + +# gcc + +OpenBSD includes `gcc4` in the base install, which is `gcc-4.2.1`. +If you prefer to use `gcc-11.2.0`, the names of the binaries differ. + +The following are part of `gcc-11.2.0`: + +* `/usr/local/bin/egcc` +* `/usr/local/bin/gcc` (symlink) +* `/usr/local/bin/eg++` +* `/usr/local/bin/g++` (symlink) +* `/usr/local/bin/egdb` +* `/usr/local/bin/gdb` (symlink) +* `/usr/local/bin/egfortran` +* `/usr/local/bin/gfortran` (symlink) +* `/usr/local/bin/gnat` + +The following are part of `gcc-4.2.1` + +* `/usr/bin/gcc4` +* `/usr/bin/g++4` +* `/usr/bin/gdb` + +`GNUstep` is available if you would like to develop using Objective-C. The +following should be added to `~/.kshrc`: + +``` +export GNUSTEP_MAKEFILES=/usr/local/share/GNUstep/Makefiles +. /usr/local/share/GNUstep/Makefiles/GNUstep.sh +``` + +You will also need to call `gmake` rather than `make` when building Objective-C +code. See [this StackOverflow post](https://stackoverflow.com/questions/14441852/how-to-build-gnustep-programs-on-openbsd) +for more information. + +[back](/) + diff --git a/pages/gcc8.md b/pages/gcc8.md deleted file mode 100644 index 6accfe1..0000000 --- a/pages/gcc8.md +++ /dev/null @@ -1,31 +0,0 @@ -<!-- -title: gcc-8 -description: Information on using gcc-8 -author: gbmor ---> - -# gcc-8 - -OpenBSD includes `gcc` in the base install. However, it includes `gcc-4.2.1`. -If you prefer to use `gcc-8.3.0`, the names of the binaries differ so as to not -conflict with `gcc` in base. - -* `egcc` - gcc -* `eg++` - g++ -* `egdb` - gdb -* `egfortran` - g95 / gfortran - -The exception being `gnat`. - -`GNUstep` is available if you would like to develop using Objective-C. The -following should be added to `~/.kshrc`: - -``` -export GNUSTEP_MAKEFILES=/usr/local/share/GNUstep/Makefiles -. /usr/local/share/GNUstep/Makefiles/GNUstep.sh -``` -You will also need to call `gmake` rather than `make` when building Objective-C -code. See [this StackOverflow post](https://stackoverflow.com/questions/14441852/how-to-build-gnustep-programs-on-openbsd) -for more information. - -[back](/) |