Build pipeline failing in gitlab using sdl2

I am trying to make sure that my program compiles in gitlab but for some reason there is a linking error in sdl2 when compiling in gitlab that i dont have in my local machin:

.gitlab-ci.yml

before_script:
    - apt-get update -qq
    - apt-get install -y build-essential
    - apt-get install -y libsdl2-dev
    - apt-get install -y libsdl2-gfx-dev
    - apt-get install -y libsdl2-image-dev
    - apt-get install -y libsdl2-ttf-dev

build:
    stage: build
    script:
        - make

Here is my makefile

CC = gcc
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
CFLAGS = -Wall -Wextra `sdl2-config --cflags`
LDFLAGS =`sdl2-config --libs` -lSDL2_image -lSDL2_gfx -lm 
EXEC = circles

$(EXEC): $(OBJS)
	$(CC) $^ $(LDFLAGS) -o $(EXEC)

%.o: %.c
	$(CC) $< $(CFLAGS) -c -o $@

.PHONY: clean

clean:
	rm -f $(OBJS) $(EXEC)

My pipeline error:

enter image description here

My function

void Playmusic(struct Application *application){
    //load WAV file
    SDL_LoadWAV("../assets/courtesy.wav", &application->wavSpec, &application->wavBuffer, &application->wavLength);
    // open audio device
    application->deviceId = SDL_OpenAudioDevice(NULL, 0, &application->wavSpec, NULL, 0);
    // play audio
    SDL_QueueAudio(application->deviceId , application->wavBuffer, application->wavLength);
    SDL_PauseAudioDevice(application->deviceId , 0);
}

What am i doing wrong? Its weird because it only say that for this function…