Your build scripts are a bit complicated and I am hoping for some guidance.  Here is a Dockerfile which shows exactly how I am building gpac:

```Dockerfile
FROM fedora:29

RUN dnf group install -y "C Development Tools and Libraries" "Development Tools"
RUN dnf install -y zlib-devel

RUN mkdir -p /var/repo
WORKDIR /var/repo
RUN git clone https://github.com/gpac/gpac.git -b v2.0.0

WORKDIR /var/repo/gpac
RUN ./configure --static-bin
RUN make
```

Basically I cannot get past this error.

```
make[2]: Entering directory '/var/repo/gpac/applications/gpac'
  CC gpac.c
  CC compositor_tools.c
  CC gpac_help.c
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
```

I am **guessing** that it is trying to static link with some `glibc` libraries which is generally discouraged (for good reasons).  You probably want to be linking dynamically to all of `glibc`, then statically to everything else.  I wrestled with your build scripts for a couple hours and I couldn't figure it out.

Extra info:
* The fedora build succeeds when I remove `--static-bin`
* I tried 2 other branches of gpac:
  * `master` also has the error
  * `v1.0.1` does not have the error


Problems building on fedora with --static-bin
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Problems building on fedora with --static-bin
Issue date:

--- start body ---
Your build scripts are a bit complicated and I am hoping for some guidance.  Here is a Dockerfile which shows exactly how I am building gpac:

```Dockerfile
FROM fedora:29

RUN dnf group install -y "C Development Tools and Libraries" "Development Tools"
RUN dnf install -y zlib-devel

RUN mkdir -p /var/repo
WORKDIR /var/repo
RUN git clone https://github.com/gpac/gpac.git -b v2.0.0

WORKDIR /var/repo/gpac
RUN ./configure --static-bin
RUN make
```

Basically I cannot get past this error.

```
make[2]: Entering directory '/var/repo/gpac/applications/gpac'
  CC gpac.c
  CC compositor_tools.c
  CC gpac_help.c
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
```

I am **guessing** that it is trying to static link with some `glibc` libraries which is generally discouraged (for good reasons).  You probably want to be linking dynamically to all of `glibc`, then statically to everything else.  I wrestled with your build scripts for a couple hours and I couldn't figure it out.

Extra info:
* The fedora build succeeds when I remove `--static-bin`
* I tried 2 other branches of gpac:
  * `master` also has the error
  * `v1.0.1` does not have the error


--- end body ---
