address@hidden:~/src/glut-example$ guix environment --ad-hoc freeglut address@hidden:~/src/glut-example$ echo $GUIX_ENVIRONMENT /gnu/store/gsfq0h6hpjz9ddvgn4g3gkl5r6gg3ink-profile address@hidden:~/src/glut-example$ ls $GUIX_ENVIRONMENT etc include lib manifest share address@hidden:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l glut -l GL -I $GUIX_ENVIRONMENT/include /tmp/ccXMXGNS.o: In function `init': cube.c:(.text+0x321): undefined reference to `gluPerspective' cube.c:(.text+0x372): undefined reference to `gluLookAt' collect2: error: ld returned 1 exit status address@hidden:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l glut -l glu -l GL -I $GUIX_ENVIRONMENT/include ld: cannot find -lglu collect2: error: ld returned 1 exit status address@hidden:~/src/glut-example$ gcc cube.c -L $GUIX_ENVIRONMENT/lib -l glut -l GLU -l GL -I $GUIX_ENVIRONMENT/include address@hidden:~/src/glut-example$ ls a.out cube.c address@hidden:~/src/glut-example$ ./a.out Segmentation fault