forked from guillep/old-pharo-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pharo-project#127 from estebanlm/Cog
fixes on linux build for pharo + others
- Loading branch information
Showing
35 changed files
with
199 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
ifndef THIRDPARTYDIR | ||
include Makefile.lib.extra | ||
endif | ||
include ../../third-party/openssl.spec | ||
|
||
# plugin definitions | ||
OPENSSLURL:=$(openssl_spec_download_url) | ||
OPENSSLLIBNAME:=$(openssl_spec_product1_name_linux) | ||
OPENSSLALLLIBNAMES:=$(openssl_spec_product2_name_linux) $(OPENSSLLIBNAME) | ||
OPENSSLDIR:=$(THIRDPARTYDIR)/$(openssl_spec_unpack_dir_name) | ||
OPENSSLARCHIVE:=$(THIRDPARTYCACHEDIR)/$(openssl_spec_archive_name) | ||
OPENSSLLIB:=$(THIRDPARTYINSTALLDIR)/$(OPENSSLLIBNAME) | ||
OPENSSLSYMLINKS:=$(openssl_spec_symlinks_linux) | ||
|
||
# ensure third-party library is built and recognised by plugins | ||
INCDIRS:=$(INCDIRS) $(THIRDPARTYINCLUDEDIR) | ||
EXTRALIBS:=$(EXTRALIBS) $(OPENSSLLIB) | ||
PLUGINREQS:=$(THIRDPARTYLIBS) | ||
|
||
$(OPENSSLARCHIVE): | ||
curl -o $(OPENSSLARCHIVE) -L $(OPENSSLURL) | ||
|
||
$(THIRDPARTYLIBDIR)/$(OPENSSLLIBNAME): $(OPENSSLARCHIVE) | ||
tar x -f $(OPENSSLARCHIVE) -C $(THIRDPARTYDIR) | ||
cd $(OPENSSLDIR) \ | ||
&& setarch i386 ./config -m32 --prefix='$(THIRDPARTYOUTDIR)' shared \ | ||
&& make install | ||
|
||
# Assuming building libssl will also build libcrypto | ||
$(OPENSSLLIB): $(THIRDPARTYLIBDIR)/$(OPENSSLLIBNAME) | ||
|
||
openssl: $(OPENSSLLIB) | ||
|
||
install: | ||
@for each in $(OPENSSLALLLIBNAMES); do \ | ||
cp -f $(THIRDPARTYLIBDIR)/$$each $(THIRDPARTYINSTALLDIR); \ | ||
done | ||
@echo "Installing links" | ||
@for each in $(THIRDPARTYLIBDIR)/$(OPENSSLSYMLINKS); do \ | ||
if [ -L $$each ]; then \ | ||
cp -a $$each $(THIRDPARTYINSTALLDIR); \ | ||
fi \ | ||
done | ||
|
||
all: $(THIRDPARTYOUTDIR) $(THIRDPARTYINSTALLDIR) $(THIRDPARTYCACHEDIR) openssl | ||
|
||
clean: | ||
rm -Rf $(OPENSSLDIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.