-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cba5f6d
commit 5d18aba
Showing
1 changed file
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Build HAProxy as static PIE | ||
|
||
Build the [HAProxy](https://git.haproxy.org/): The Reliable, High Performance TCP/HTTP Load Balancer as a static PIE ELF running on Linux. | ||
|
||
## Requirements | ||
|
||
Make sure the following packages are installed: | ||
* gcc >= 8 (required for the `-static-pie` linking option) | ||
* autotools | ||
* GNU Make | ||
* zlib development files | ||
* OpenSSL development files | ||
|
||
For Ubuntu, run the command below to install all requirements: | ||
|
||
``` | ||
$ sudo apt install build-essential zlib1g-dev libssl-dev | ||
``` | ||
|
||
## Build | ||
|
||
The `HAProxy` static PIE ELF is located in the current folder. | ||
If you want to rebuild it, run: | ||
|
||
``` | ||
$ ./build.sh | ||
``` |