$OpenBSD: patch-m3config_src_OpenBSD_386,v 1.1.1.1 2001/05/05 22:09:21 espie Exp $ --- m3config/src/OpenBSD_386.orig Wed May 2 16:16:11 2001 +++ m3config/src/OpenBSD_386 Wed May 2 17:40:10 2001 @@ -5,56 +5,7 @@ readonly TARGET = "OpenBSD_386" include("COMMON") +include("OpenBSD") -INSTALL_ROOT = "/usr/local/pm3" -X11ROOT = "/usr/X11R6/lib" - -PLATFORM_SUPPORTS_MOTIF = "" -% PLATFORM_SUPPORTS_SHARED_LIB = "T" -INSTALL_IMPLS = "" -SKIP_M3GDB = "T" -SKIP_GNUEMACS = "T" - -ASM = ["as", "-k", "-o"] -BOPT_FLAG = "-O" -BPIC_FLAG = ["-O0", "-fPIC"] -CC = ["cc","-c"] -GNU_CC = "cc" -GNU_CFLAGS = [] -LINK = ["cc"] -MAKELIB = [ "ar", "cru" ] -MAKESHLIB = ["cc","-shared"] -M3CC_MAKE = ["gmake", "BISON=yacc"] -OPT_FLAG = "-O" -RANLIB = ["ranlib"] -RPATH_FLAG = "-R" -RPATH_prefix = "" -RPATH_LIB_USE_ONLY = "T" - -% OpenBSD/a.out requires a major and minor version number on each shared -% library. Don't try to derive these from the PM3 version number. That -% approach does not work out well in practice. -SHLIB_VERSION = "0.1" - -proc m3_make_shared_lib (lib, objects, imported_libs) is - local lib_sox = format ("lib%s.so.%s", lib, SHLIB_VERSION) - local cmd = [MAKESHLIB_CMD, "-o", lib_sox, objects] - - if VERBOSE write(cmd, CR) end - return exec(cmd) -end - -proc m3_note_shlib(lib) is - if Options{"shared_lib"}[0] and PLATFORM_SUPPORTS_SHARED_LIB - local lib_sox = format ("lib%s.so.%s", lib, SHLIB_VERSION) - - if defined ("_all") - install_derived(lib_sox) - install_link(lib_sox, - LIB_TO_PKG_USE & SL & PACKAGE & SL & BUILD_DIR, LIB_INSTALL) - end - deriveds (lib_sox, [""]) - end -end - -setDefault("","") +PLATFORM_SUPPORTS_SHARED_LIB = "T" +ASM = ["as", "-k", "-K", "-o"]