From gagn (“benefit”) + -lig.
gagnlig (neuter singular gagnlig, definite singular and plural gagnlige)