pwlib needs porting for aarch64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro AArch64 cross-distro work |
Fix Released
|
Medium
|
Unassigned |
Bug Description
pwlib (dependency of openh323) is not recognizing the aarch64 architecture as a 64 bit platform and fails compilation then later on.
I've developed the following patch for 1.11
--- configure.ac
+++ configure.ac
@@ -141,6 +141,11 @@
+ aarch64) MACHTYPE=aarch64 ;
+ P_64BIT=1 ;
+ LIB64=1 ;
+ ;;
+
alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) MACHTYPE=alpha ;
--- make/unix.mak
+++ make/unix.mak
@@ -277,6 +277,10 @@
endif
endif
+ifneq (,$(findstring aarch64, $(MACHTYPE)))
+MACHTYPE := aarch64
+endif
+
ifneq (,$(findstring powerpc, $(MACHTYPE)))
MACHTYPE := ppc
endif
@@ -435,6 +439,10 @@
LDLIBS += -lresolv
endif
+ifeq ($(MACHTYPE)
+STDCCFLAGS += -DP_64BIT
+endif
+
ifeq ($(MACHTYPE),ppc64)
STDCCFLAGS += -DP_64BIT
endif
Hi,
Thanks for the patch. You might want to take notice that pwlib has been replaced by ptlib which seemingly does not need this patch (but would probably benefit from it). You might want to migrate to ptiib to get the latest code.