delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/03/23/20:30:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.159.55.145 with SMTP id q17mr1504363uaq.39.1490314531868;
Thu, 23 Mar 2017 17:15:31 -0700 (PDT)
X-Received: by 10.157.15.162 with SMTP id d31mr536494otd.0.1490314531808; Thu,
23 Mar 2017 17:15:31 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Thu, 23 Mar 2017 17:15:31 -0700 (PDT)
In-Reply-To: <a8955de3-9a28-4d48-a9f0-a7cca96c424d@googlegroups.com>
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=104.55.20.34; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
NNTP-Posting-Host: 104.55.20.34
References: <201703061736 DOT v26HaJCY005179 AT delorie DOT com> <1df49912-f31f-4881-8404-524756be5162 AT googlegroups DOT com>
<a8955de3-9a28-4d48-a9f0-a7cca96c424d AT googlegroups DOT com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cfafbe4c-b342-4a2a-89c0-a37e985be303@googlegroups.com>
Subject: Re: ANNOUNCE: DJGPP port of FSU Pthreads 3.14 uploaded.
From: "rugxulo AT gmail DOT com [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Fri, 24 Mar 2017 00:15:31 +0000
Bytes: 3045
Lines: 58
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi,

On Tuesday, March 7, 2017 at 1:58:34 PM UTC-6, Juan Manuel Guerrero wrote:
> 
> I have also tried to compile p7zip_9.20.1_src_all.tar.bz2
> but I do not have yasm installed thus the build failed.
> May be you want to give the port a try.

It's been a few years since I bothered with p7zip. I don't
remember all of the details and didn't study my old makefile
closely here. But, IIRC, you don't need YASM at all.

Latest 7-Zip proper is 16.04 (from last October) but 16.02 is
still latest p7zip proper (from last May / ported in July).

https://sourceforge.net/projects/p7zip/files/p7zip/16.02/

Try using this makefile.machine to build p7zip 16.02 :

*** makefile.machine ***
# p7zip 16.02 using DJGPP (+ FSU Pthreads)

ifeq ($(DJGPP),)
$(error Please install/enable DJGPP first!)
endif

OPTIMIZE=-O -mtune=i686 -s
OPTFLAGS=$(OPTIMIZE)

ALLFLAGS=$(OPTFLAGS) \
       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
       -DNDEBUG -D_REENTRANT -DENV_UNIX \
       -DETIMEDOUT=110 \
       $(LOCAL_FLAGS)

CXX=gpp
CC=gcc

LINK_SHARED=
LOCAL_LIBS_DLL=$(LOCAL_LIBS)
LOCAL_LIBS=-lgthreads

OBJ_CRC32=$(OBJ_CRC32_C)
OBJ_AES=
*** end ***

A quick attempt seems to build okay. I then used that 7za.exe
to unpack/rebuild sources again, and the resulting .EXE is the same.
Try it yourself. ("redir -t" says it took roughly 4 + 1/2 minutes
under DOSEMU.)

> Because the FSU pthread library was the second pthread
> library available that used to have some DJGPP support
> I decided to port it to DJGPP 2.05.  May be it is of
> some use for someone else.

IIRC, in older p7zip builds, GNU pth and Watt-32 were used, but
FSU pthreads is standalone, thus smaller binaries. So yes, at
least in this particular case, it's indirectly useful.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019