Skip to content

Compile support for HP-UX #153

@michael-o

Description

@michael-o

Since this is a dependency for Subversion, to whom it may concern, this makes utf8proc compile on HP-UX:

--- Makefile     2019-03-30 21:34:11 +0000
+++ Makefile     2019-04-30 16:12:53 +0000
@@ -5,2 +5,2 @@
-CC?=gcc
-INSTALL=install
+CC?=${CC}
+INSTALL=${INSTALL}
@@ -12,3 +12,3 @@
-PICFLAG = -fPIC
-C99FLAG = -std=c99
-WCFLAGS = -Wall -pedantic
+PICFLAG = +z
+C99FLAG = -Ae
+WCFLAGS = +w
@@ -37,2 +37,2 @@
-prefix=/usr/local
-libdir=$(prefix)/lib
+prefix=${PREFIX}
+libdir=${LIBDIR}
@@ -82 +82 @@
-       $(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname -Wl,libutf8proc.so.$(MAJOR) utf8proc.o
+       $(CC) $(LDFLAGS) -b -o $@ -Wl,+h -Wl,libutf8proc.so.$(MAJOR) utf8proc.o

Notes:

  • CC should point to aCC or some other compiler from HPE.
  • The required install comes from GNU coreutils and is not available on HP-UX, one can steal install-sh from Subversion, for example.
  • prefix: This is System V UNIX, there is no /usr/local (BSD), use /opt or alike,
  • libdir There is also no ../lib, but needs to be either .../lib/hpux32 or .../lib/hpux64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions