Repository: mitsuhiko/minijinja (language: rust)

Issue:
Linking error of minijinja-cabi/example on  Debian GNU/Linux 11 (bullseye) with GCC 10.2.1
## Description
The C bindings (minijinja-cabi) example's Makefile has incorrect linking order which causes compilation failure on Debian systems using GCC because the GNU linker processes arguments from left to right. The current command places the library flag (-l) before the source file, causing "undefined reference" errors with the GNU linker.

## Reproduction steps
1. Run `make` in minijinja-cabi/example
2. Observe linker errors for all minijinja functions (mj_env_new, mj_env_set_debug, etc.)

## Additional helpful information:

Version of minijinja: commit cd2063c270122970f827bf2555da18697cddd272
Version of rustc: 1.81.0 (eeb90cda1 2024-09-04)
Operating system and version: Debian GNU/Linux 11 (bullseye) with GCC 10.2.1

## What did you expect
The example should compile successfully out of the box on all supported systems.


Discussion / hints:

Fix patch:
diff --git a/minijinja-cabi/example/Makefile b/minijinja-cabi/example/Makefile
index 37c65f5c..60b9a4ef 100644
--- a/minijinja-cabi/example/Makefile
+++ b/minijinja-cabi/example/Makefile
@@ -1,2 +1,2 @@
 hello: hello.c
-	cc -I../include -lminijinja_cabi -L../../target/release ./hello.c -o hello
+	cc -I../include ./hello.c -L../../target/release -lminijinja_cabi -o hello


Test patch: