Skip to content
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

Updated hints file for OpenBSD #1114

Closed
p5pRT opened this issue Feb 2, 2000 · 1 comment
Closed

Updated hints file for OpenBSD #1114

p5pRT opened this issue Feb 2, 2000 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Feb 2, 2000

Migrated from rt.perl.org#2072 (status was 'resolved')

Searchable as RT2072$

@p5pRT
Copy link
Author

p5pRT commented Feb 2, 2000

From @millert

Created by millert@courtesan.com

Below is an updated hints for OpenBSD; this just drops in to perl5.005_63.
I can also send diffs against the hints file in perl5.005_63 if you
would prefer that.

- todd

# hints/openbsd.sh
#
# hints file for OpenBSD; Todd Miller <millert@​openbsd.org>
# Edited to allow Configure command-line overrides by
# Andy Dougherty <doughera@​lafcol.lafayette.edu>
#
# To build with distribution paths, use​:
# ./Configure -des -Dopenbsd_distribution=defined
#

# OpenBSD has a better malloc than perl...
test "$usemymalloc" || usemymalloc='n'

# Currently, vfork(2) is not a real win over fork(2) but this will
# change starting with OpenBSD 2.7.
usevfork='true'

# setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions
# in 4.4BSD. Configure will find these but they are just emulated
# and do not have the same semantics as in 4.3BSD.
d_setregid=$undef
d_setreuid=$undef
d_setrgid=$undef
d_setruid=$undef

#
# Not all platforms support dynamic loading...
#
case `arch` in
OpenBSD.alpha|OpenBSD.mips|OpenBSD.powerpc|OpenBSD.vax)
  usedl=$undef
  ;;
*)
  usedl=$define
  d_dlopen=$define
  d_dlerror=$define
  # we use -fPIC here because -fpic is *NOT* enough for some of the
  # extensions like Tk on some OpenBSD platforms (ie​: sparc)
  cccdlflags="-DPIC -fPIC $cccdlflags"
  lddlflags="-Bshareable $lddlflags"
  ;;
esac

#
# Tweaks for various versions of OpenBSD
#
case "$osvers" in
2.5)
  # OpenBSD 2.5 has broken odbm support
  i_dbm=$undef
  ;;
esac

# OpenBSD doesn't need libcrypt but many folks keep a stub lib
# around for old NetBSD binaries.
libswanted=`echo $libswanted | sed 's/ crypt / /'`

# Configure can't figure this out non-interactively
d_suidsafe=$define

# cc is gcc so we can do better than -O
# Allow a command-line override, such as -Doptimize=-g
test "$optimize" || optimize='-O2'

# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
cat > UU/usethreads.cbu <<'EOCBU'
case "$usethreads" in
$define|true|[yY]*)
  # any openbsd version dependencies with pthreads?
  libswanted="$libswanted pthread"
esac
EOCBU

# When building in the OpenBSD tree we use different paths
# This is only part of the story, the rest comes from config.over
case "$openbsd_distribution" in
''|$undef|false) ;;
*)
  # We put things in /usr, not /usr/local
  prefix='/usr'
  prefixexp='/usr'
  sysman='/usr/share/man/man1'
  libpth='/usr/lib'
  glibpth='/usr/lib'
  # Ports installs non-std libs in /usr/local/lib so look there too
  locincpth='/usr/local/include'
  loclibpth='/usr/local/lib'
  # Link perl with shared libperl
  if [ "$usedl" = "$define" -a -r shlib_version ]; then
  useshrplib=true
  libperl=`. ./shlib_version; echo libperl.so.${major}.${minor}`
  fi
  ;;
esac

# end

Perl Info


Site configuration information for perl 5.00503:

Configured by root at Fri Jan 28 17:14:17 MST 2000.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=openbsd, osvers=2.6, archname=i386-openbsd
    uname='openbsd'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=2.95.2 19991024 (release)
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =''
    libpth=/usr/lib
    libs=-lm -lc
    libc=/usr/lib/libc.a, so=so, useshrplib=true, libperl=libperl.so.5.3
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=define, ccdlflags=' '
    cccdlflags='-DPIC -fPIC ', lddlflags='-Bforcearchive -Bshareable '

Locally applied patches:
    


@INC for perl 5.00503:
    /usr/libdata/perl5/i386-openbsd/5.00503
    /usr/local/libdata/perl5/i386-openbsd/5.00503
    /usr/libdata/perl5
    /usr/local/libdata/perl5
    /usr/local/libdata/perl5/site_perl/i386-openbsd
    /usr/libdata/perl5/site_perl/i386-openbsd
    /usr/local/libdata/perl5/site_perl
    /usr/libdata/perl5/site_perl
    .


Environment for perl 5.00503:
    HOME=/home/millert
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/millert/bin/OpenBSD.i386:/home/millert/bin:/home/millert/bin/scripts:/usr/local/gnu/bin:/usr/local/bin:/usr/local/sbin:/usr/local/etc:/usr/local/rcs/bin:/usr/local/mh/bin:/usr/local/news/bin:/usr/local/emacs/bin:/usr/local/netpbm/bin:/usr/local/mtools/bin:/usr/local/netscape/bin:/usr/local/ghostscript/bin:/usr/local/X.V11R5/bin:/usr/local/X.V11R6/bin:/usr/local/frame/bin:/usr/local/teTeX/bin:/usr/local/cvs-1.10.1/bin:/usr/local/games/bin:/usr/local/archivers/bin:/usr/local/ssh/bin:/usr/local/skey/bin:/usr/local/cdrecord/bin:/bin:/sbin:/usr/games:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/X11/bin/.:/usr/X11R6/bin/.:/usr/local/bin/.:/usr/obj/bin/.:/usr/src/bin/.
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/tcsh


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant