540c1f4f5f
PTLib is a moderately large C++ class library that originated many years ago as a method to produce applications that run on both Microsoft Windows and Unix X-Windows systems. It also was to have a Macintosh port as well, but this never eventuated. In those days it was called the PWLib the Portable Windows Library. Since then, the availability of multi-platform GUI toolkits such as KDE and wxWindows, and the development of the OpenH323 and OPAL projects as primary user of the library, has emphasised the focus on networking, I/O portability, multi-threading and protocol portability. Mostly, the library is used to create high performance and highly portable network-centric applications. So all the GUI abstractions ahave been dropped and it was renamed the Portable Tools Library that you see today.
43 lines
924 B
Plaintext
43 lines
924 B
Plaintext
$OpenBSD: patch-make_unix_mak,v 1.1.1.1 2010/03/23 21:10:17 ajacoutot Exp $
|
|
--- make/unix.mak.orig Mon Sep 21 02:25:30 2009
|
|
+++ make/unix.mak Tue Sep 22 17:20:24 2009
|
|
@@ -159,7 +159,7 @@ endif # P_SHAREDLIB
|
|
|
|
|
|
STATIC_LIBS := libstdc++.a libg++.a libm.a libc.a
|
|
-SYSLIBDIR := $(shell $(PTLIBDIR)/make/ptlib-config --libdir)
|
|
+SYSLIBDIR := $(shell ${PREFIX}/bin/ptlib-config --libdir)
|
|
|
|
endif # linux
|
|
|
|
@@ -198,12 +198,18 @@ ifeq ($(MACHTYPE),x86)
|
|
#STDCCFLAGS += -m486
|
|
endif
|
|
|
|
-LDLIBS += -lossaudio
|
|
+ifeq ($(MACHTYPE),amd64)
|
|
+STDCCFLAGS += -DP_64BIT
|
|
+endif
|
|
|
|
+ifeq ($(MACHTYPE),sparc64)
|
|
+STDCCFLAGS += -DP_64BIT
|
|
+endif
|
|
+
|
|
P_USE_RANLIB := 1
|
|
#STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure
|
|
+STDCCFLAGS += -fPIC
|
|
|
|
-
|
|
endif # OpenBSD
|
|
|
|
|
|
@@ -656,7 +662,7 @@ ifneq ($(OSTYPE),Darwin)
|
|
STDCCFLAGS += -xO3
|
|
endif
|
|
else
|
|
- STDCCFLAGS += -Os
|
|
+ STDCCFLAGS +=
|
|
endif
|
|
else
|
|
STDCCFLAGS += -O2
|