Changeset 626


Ignore:
Timestamp:
Aug 17, 2003, 3:49:56 AM (22 years ago)
Author:
bird
Message:

#597: OS/2 EMX config/hacks.

Location:
trunk/src/binutils/libiberty
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/libiberty/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.1.1.2 to 1.2
    r625 r626  
    7878# A configuration can specify extra .o files that should be included,
    7979# even if they are in libc. (Perhaps the libc version is buggy.)
    80 EXTRA_OFILES = 
     80EXTRA_OFILES =
    8181
    8282# Flags to pass to a recursive make.
     
    108108# FIXME: add @BUILD_INFO@ once we're sure it works for everyone.
    109109all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir
     110ifeq "$(BUILD_PLATFORM)" "OS2"
     111        $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
     112else
    110113        @: $(MAKE) ; exec $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
     114endif
    111115
    112116.PHONY: check installcheck
  • trunk/src/binutils/libiberty/config.table

    • Property cvs2svn:cvs-rev changed from 1.1.1.2 to 1.2
    r625 r626  
    1313  i370-*-opened*)       frag=mh-openedition ;;
    1414  i[345]86-*-windows*)  frag=mh-windows ;;
     15  *-*-*emx)             frag=mh-emx ;;
    1516esac
    1617
     
    3233  case "${host}" in
    3334    *-*-cygwin*)        ;;
     35    *-*-*emx)           ;;
    3436    alpha*-*-linux*)    frag=mh-elfalphapic ;;
    3537    arm*-*-*)           frag=mh-armpic ;;
  • trunk/src/binutils/libiberty/config/mh-emx

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r625 r626  
    1 CFLAGS =
     1# r=bird: why this here? Should be sufficient to do -s when linking.
     2#CFLAGS = -s -O2
    23INSTALL = cp
    34
    4 # Instead of ranlib run dllar which will make a shared library (dll)
    5 RANLIB = dllar -d 'The GNU -liberty library' -o iberty
     5# Add the "s" flag to AR_FLAGS to add an archive index instead of RANLIB
     6AR_FLAGS = rcs
     7
     8# hack: Instead of ranlib run dllar which will make a shared library (dll)
     9#       TODO: Don't use RANLIB because it f**ks up install.
     10#       TODO: Pass the correct -g/-s flag without using non-standard stuff.
     11# bird: Forget this it breaks the install. We'll need a better hack.
     12# override RANLIB = kRx.exe dllar.cmd -cc '$(CC)' -d 'The GNU -liberty library' -o iberty -lgcc
     13
  • trunk/src/binutils/libiberty/getpwd.c

    • Property cvs2svn:cvs-rev changed from 1.1.1.2 to 1.2
    r625 r626  
    5757#endif
    5858
    59 #if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__)))
     59#if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__EMX__))
    6060
    6161/* Get the working directory.  Use the PWD environment variable if it's
     
    105105}
    106106
    107 #else   /* VMS || _WIN32 && !__CYGWIN__ */
     107#else   /* VMS || _WIN32 && !__CYGWIN__ || __EMX__ */
    108108
    109109#ifndef MAXPATHLEN
     
    125125}
    126126
    127 #endif  /* VMS || _WIN32 && !__CYGWIN__ */
     127#endif  /* VMS || _WIN32 && !__CYGWIN__ || __EMX__ */
  • trunk/src/binutils/libiberty/lbasename.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r625 r626  
    4747
    4848#if defined (_WIN32) || defined (__MSDOS__) \
    49     || defined (__DJGPP__) || defined (__OS2__)
     49    || defined (__DJGPP__) || defined (__OS2__) || defined (__EMX__)
    5050#  define HAVE_DOS_BASED_FILE_SYSTEM
    51 #  ifndef DIR_SEPARATOR_2 
     51#  ifndef DIR_SEPARATOR_2
    5252#    define DIR_SEPARATOR_2 '\\'
    5353#  endif
     
    6969#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
    7070  /* Skip over a possible disk name.  */
    71   if (ISALPHA (name[0]) && name[1] == ':') 
     71  if (ISALPHA (name[0]) && name[1] == ':')
    7272    name += 2;
    7373#endif
  • trunk/src/binutils/libiberty/pex-os2.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r625 r626  
    3131#include <sys/wait.h>
    3232#endif
    33 
    34 /* ??? Does OS2 have process.h?  */
    35 extern int spawnv ();
    36 extern int spawnvp ();
     33#include <process.h>
    3734
    3835int
     
    4946  if ((flags & PEXECUTE_ONE) != PEXECUTE_ONE)
    5047    abort ();
    51   /* ??? Presumably 1 == _P_NOWAIT.  */
    52   pid = (flags & PEXECUTE_SEARCH ? spawnvp : spawnv) (1, program, argv);
     48  pid = (flags & PEXECUTE_SEARCH ? spawnvp : spawnv) (P_WAIT, program, argv);
    5349  if (pid == -1)
    5450    {
     
    7167  return pid;
    7268}
     69
  • trunk/src/binutils/libiberty/strerror.c

    • Property cvs2svn:cvs-rev changed from 1.1.1.2 to 1.2
    r625 r626  
    2020#include <stdio.h>
    2121#include <errno.h>
     22#ifdef __EMX__ /* EM put these two in the wrong header, they should be in stdio.h. */
     23#include <stdlib.h>
     24#endif
    2225
    2326#ifdef HAVE_SYS_ERRLIST
     
    659662      msg = (char *) sys_errlist[errnoval];
    660663    }
    661  
     664
    662665  return (msg);
    663666}
Note: See TracChangeset for help on using the changeset viewer.