openpkg/make.patch

Fri, 07 Sep 2012 19:08:07 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 07 Sep 2012 19:08:07 +0200
changeset 667
9dacbd1d1aa2
parent 250
bda4f5eec616
permissions
-rw-r--r--

Correct build configuration in Solaris subdir, correct english grammar,
remove irrelevant strip notice, introduce custom CFLAG logic, facilitate
use of Solaris Studio compiler with needed build configuration
adjustments, conditionally build 64 bit position independent code,
and accommodate tun(7) in newer Solaris releases by renaming driver
and module from conflicting 'tun' to 'vtun'. These changes include
some nonstandard 'I give up' logic causing out of tree builds by
manipulating the PATH, for example.

     1 Index: glob/glob.c
     2 --- glob/glob.c.orig	2009-09-28 08:46:03.000000000 +0200
     3 +++ glob/glob.c	2010-07-29 14:25:40.000000000 +0200
     4 @@ -217,13 +217,13 @@
     5  #  ifdef HAVE_ALLOCA_H
     6  #   include <alloca.h>
     7  #  else	/* Not HAVE_ALLOCA_H.  */
     8 -#   ifndef _AIX
     9 +#   if !defined (_AIX) && !defined (__FreeBSD__)
    10  #    ifdef WINDOWS32
    11  #     include <malloc.h>
    12  #    else
    13  extern char *alloca ();
    14  #    endif /* WINDOWS32 */
    15 -#   endif /* Not _AIX.  */
    16 +#   endif /* Not _AIX && not __FreeBSD__.  */
    17  #  endif /* sparc or HAVE_ALLOCA_H.  */
    18  # endif	/* GCC.  */
    20 Index: make.h
    21 --- make.h.orig	2010-07-20 15:12:06.000000000 +0200
    22 +++ make.h	2010-07-29 14:27:20.000000000 +0200
    23 @@ -36,7 +36,7 @@
    24   #pragma alloca
    25  # else
    26  #  if !defined(__GNUC__) && !defined(WINDOWS32)
    27 -#   ifndef alloca /* predefined by HP cc +Olibcalls */
    28 +#   if !defined(alloca) && !defined(__FreeBSD__) /* predefined by HP cc +Olibcalls, part of stdlib.h on FreeBSD */
    29  char *alloca ();
    30  #   endif
    31  #  endif

mercurial