clover: Validate program and library linking options
authorPierre Moreau <pierre.morrow@free.fr>
Wed, 30 Jan 2019 21:27:54 +0000 (22:27 +0100)
committerKarol Herbst <kherbst@redhat.com>
Tue, 26 Feb 2019 20:02:07 +0000 (21:02 +0100)
commitd42f5896c52cfc616bce022e90e9c0ade2a982c0
treecb725f1379e419f339531589f5ea9afd432902d5
parentfccc6ecb52ffe9fc35ddf711f0bd8d4be225ca20
clover: Validate program and library linking options

Program linking options are only valid if the library was created with
the `-enable-link-options` option, which itself is only valid when
creating a library, and only when creating an executable.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/program.cpp