diff --git a/recipes/gdk-pixbuf/all/conanfile.py b/recipes/gdk-pixbuf/all/conanfile.py index a0fc79879ef1f..e61f73f3bb996 100644 --- a/recipes/gdk-pixbuf/all/conanfile.py +++ b/recipes/gdk-pixbuf/all/conanfile.py @@ -56,12 +56,6 @@ def configure(self): if self.options.shared: self.options["glib"].shared = True - def validate(self): - if self.options.shared and not self.options["glib"].shared: - raise ConanInvalidConfiguration( - "Linking a shared library against static glib can cause unexpected behaviour." - ) - def requirements(self): if self.settings.compiler == "clang": # FIXME: cannot bump glib due to "undefined reference to `__muloti4'" @@ -79,6 +73,10 @@ def requirements(self): self.requires("libjpeg/9d") def validate(self): + if self.options.shared and not self.options["glib"].shared: + raise ConanInvalidConfiguration( + "Linking a shared library against static glib can cause unexpected behaviour." + ) if self.settings.os == "Macos": # when running gdk-pixbuf-query-loaders # dyld: malformed mach-o: load commands size (97560) > 32768