[ ijbswa-Patches-3564815 ] Build without error on Haiku
SourceForge.net <[email protected]>
| Newsgroups | gmane.comp.web.privoxy.devel |
|---|---|
| Message-ID | <[email protected]> |
Patches item #3564815, was opened at 2012-09-04 13:41
Message generated for change (Comment added) made by simonsouth
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=311118&aid=3564815&group_id=11118
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
>Status: Open
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Simon South (simonsouth)
Assigned to: Fabian Keil (fabiankeil)
Summary: Build without error on Haiku
Initial Comment:
This patch changes configure.in so Privoxy will build on Haiku (http://haiku-os.org) out-of-the-box.
Haiku provides a pthreads implementation in its system library, libroot, as opposed to a separate library (libpthread). With this patch applied, autoconf will detect Privoxy is being built on Haiku and will omit the "-lpthread" option to gcc as it is not needed and causes the build to fail.
I've tested this on Haiku (hrev44584) and Linux (Fedora 17) and with the patch applied Privoxy builds on both systems without problem.
For Haiku, this is the configure command I used:
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--sbindir=`finddir B_COMMON_BIN_DIRECTORY` \
--sysconfdir=`finddir B_COMMON_ETC_DIRECTORY`/privoxy \
--localstatedir=`finddir B_COMMON_VAR_DIRECTORY` \
--datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--with-user=user \
--with-group=root \
LDFLAGS='-L/boot/common/lib -lnetwork'
----------------------------------------------------------------------
>Comment By: Simon South (simonsouth)
Date: 2012-09-05 06:31
Message:
Thanks!
Yes, that code is not used on Haiku:
http://www.freelists.org/post/haiku-development/-BEOS-,1
...correctly, I believe, since it looks like its main purpose is to disable
pthreads support (which Haiku offers, but BeOS didn't).
----------------------------------------------------------------------
Comment By: Fabian Keil (fabiankeil)
Date: 2012-09-05 01:47
Message:
Thanks a lot for the patch, committed to CVS.
BTW, can you comment on whether or not Privoxy's code in "#ifdef __BEOS__"
sections is used on Haiku?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=311118&aid=3564815&group_id=11118
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/