gtkd-developers / GtkD

GtkD is a D binding and OO wrapper of GTK+ originally created by Antonio Monteiro
http://gtkd.org
Other
322 stars 71 forks source link

Tests failing #272

Closed FFY00 closed 5 years ago

FFY00 commented 5 years ago
ldc: Unknown command line argument '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'.
MikeWey commented 5 years ago

The GtkD makefile isn't adding these flags, ldc might be picking them up from your systems configuration?

MikeWey commented 5 years ago

More specifically the LDFLAGS environment variable is set to these flags as they are defined in /etc/makepkg.conf

FFY00 commented 5 years ago

Yes, but aren't those valid flags?

I haven't been able to look at this because I have been away without a computer. I come home today.

If you want to look at this yourself uncomment the check function in https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gtkd and try to build the package.

MikeWey commented 5 years ago

ldc doesn't have the -Wl, flag only the same -L flag dmd uses to pass arguments to the linker.

You probably also want to set DC to ldc in the check function.