#!/bin/sh
set -e

cd "$ADTTMP"
cat > test.c << EOF
#include <nordlicht.h>
#include <stdio.h>

int main() {
	nordlicht* nl = nordlicht_init("", 1920, 200);
	if (nl != NULL)
		nordlicht_free(nl);
	return 0;
}
EOF

gcc -Wall -o test test.c -lnordlicht
./test
objdump -p test | grep "libnordlicht"
